我一直在尝试安装bower,但是我可能缺少了某些东西,因为命令bower根本没有返回任何内容!
我是这样安装bower的:
sudo npm install bower -g
这是输出结果:
npm http GET https://registry.npmjs.org/bower
npm http 304 https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/tmp
...
... # Many requests here n_n
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/traverse
/usr/bin/bower -> /usr/lib/node_modules/bower/bin/bower
bower@0.8.5 /usr/lib/node_modules/bower
├── stable@0.1.3
├── archy@0.0.2
├── colors@0.6.0-1
├── tmp@0.0.16
├── async@0.2.6
├── mkdirp@0.3.5
├── semver@1.1.4
├── request@2.11.4
├── hogan.js@2.0.0
├── lodash@1.0.1
├── rimraf@2.0.3 (graceful-fs@1.1.14)
├── nopt@2.0.0 (abbrev@1.0.4)
├── fstream@0.1.22 (inherits@1.0.0, graceful-fs@1.2.0)
├── promptly@0.1.0 (read@1.0.4)
├── tar@0.1.16 (inherits@1.0.0, block-stream@0.0.6)
├── read-package-json@0.1.13 (graceful-fs@1.2.0, lru-cache@2.0.4, slide@1.1.3, npmlog@0.0.2)
├── rc@0.0.8 (config-chain@0.3.3, optimist@0.3.5)
├── glob@3.1.21 (inherits@1.0.0, graceful-fs@1.2.0, minimatch@0.2.11)
└── unzip@0.1.4 (buffers@0.1.1, over@0.0.5, pullstream@0.1.0, setimmediate@1.0.1, readable-stream@0.2.0, binary@0.3.0)
看起来还好...
但是当我运行 bower --help
时,什么都没有发生,它什么也没显示... 我甚至尝试了 sudo bower --help
我的 nodejs 版本是 v0.8.22,npm 版本是 1.2.14,运行在 Ubuntu 12.10 上
有任何想法吗?谢谢提前
sudo ln -s /usr/bin/nodejs /usr/bin/node
,而不是重新安装 nodejs。 - gorodezkiy