2013-03-10 31 views
39

我一直在試圖安裝鮑爾,但我必須失去一些東西導致命令鮑爾根本沒有返回任何東西!鮑爾命令不返回任何東西

我安裝亭子是這樣的:

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 
[email protected] /usr/lib/node_modules/bower 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected], [email protected], [email protected], [email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected], [email protected], [email protected]) 
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 

似乎確定..

但後來我做bower --help並沒有任何反應,這不顯示什麼..我甚至嘗試過sudo bower --help

我的nodejs版本是v0.8.22,在Ubuntu 12.10上的npm版本1.2.14

任何想法??在此先感謝

回答

123

好的!

我發現這個問題......這是愚蠢它讓我笑(即使我失去了在這個夜晚)

似乎還有另外一個軟件叫「node」(業餘分組無線節點程序) 。我刪除該軟件sudo apt-get remove node,重新安裝nodeJS,然後sudo npm install bower -g等voila!

如此看來,業餘分組無線人們不使用Web developpers相處......太糟糕

希望這有助於別人

+0

我刪除了「節點」(業餘無線分組無線節點程序)並安裝了nodev0.10.28,並解決了我的問題。 – 2014-05-21 06:01:13

+0

它確實有幫助,我檢查了ubuntu中的軟件程序,發現Node是那個程序。有點令人沮喪 – corvid 2014-08-09 15:57:30

+7

謝謝,我在刪除節點(業餘無線分組無線節點程序)而不是重新安裝nodejs後添加了'''sudo ln -s/usr/bin/nodejs/usr/bin/node'的符號鏈接 – antongorodezkiy 2014-08-28 00:32:04

2

您是否在代理的後面工作?看來鮑爾不會像npm那樣自動獲取代理設置。

如果您設置了HTTP_PROXY和HTTPS_PROXY環境變量,那麼bower應該可以工作。

https://github.com/twitter/bower/issues/208

注意,他們必須是大寫。

Derm

+0

非u_u我沒有背後的代理。我試着重新安裝節點和npm就像它說的[這裏](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) – pleasedontbelong 2013-03-13 22:13:13

+0

我的猜測是,它有什麼關係用戶權限..我讀過人們有問題使用sudo install -g – pleasedontbelong 2013-03-13 23:33:26

1

另外,請確保您使用的是「穩定」版本的nodejs;我也有這個問題,原來是安裝/使用最新不穩定構建。不知道它是一個節點問題,還是一個npm(顯示npm更新隨w/node一起打包)。

(快速預留,使用「N」 - https://github.com/visionmedia/n - 管理你的節點版本...太大的PITA的少;))

1

我曾在一個MAC類似的問題,在年底更新我的路npm似乎工作:

export PATH=$PATH:/usr/local/share/npm/bin 
+0

這裏的這個幫助我。乾杯! – 2014-04-14 07:50:52

2

具有相同的問題。

我所做的只是修改了鮑爾源代碼並修改了第一行。

火了終端和JANK這樣的:

sudo nano `which bower` 

編輯的第一行寫着:

#!/usr/bin/env node

並將其更改爲:

#!/usr/bin/env nodejs

製作肯定節點(業餘分組無線電節點程序)未安裝。

中提琴就是這樣。適用於薄荷ubuntu