Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
237 views
in Technique[技术] by (71.8m points)

node.js - bower command not returning anything

I've been trying to install bower, but I must be missing something cause the command bower is not returning anything at all!

I installed bower like this:

sudo npm install bower -g

this is the output:

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)

seems ok..

but then I do bower --help and nothing happens, it doesn't show anything.. I've even tried a sudo bower --help

My nodejs version is v0.8.22 , npm version 1.2.14 on Ubuntu 12.10

Any ideas?? thanks in advance

question from:https://stackoverflow.com/questions/15327595/bower-command-not-returning-anything

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Ok!!!

I found the problem... this is so stupid it made me laugh (even if i lost my night on this)

It seems that there's another software called "node" (Amateur Packet Radio Node program). I removed that software with sudo apt-get remove node, reinstalled nodeJS, then sudo npm install bower -g et voila!!!

so it seems that amateur packet radio people dont get along with web developpers... too bad

Hope this helps someone else


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...