2013-05-01 49 views
2

我使用節點包管理器安裝鮑爾,但我總是得到'鮑爾命令未找到'。 但如果我鍵入/usr/local/share/npm/bin/bower它工作正常。npm:問題與鮑爾命令未找到

我讀我不得不添加export PATH=~/usr/local/share/npm/bin:$PATH到〜/ .profile文件,但我不知道我是否正確

enter image description here

添加,如果有人可以輕移我在正確的方向。

+0

[「安裝後找不到命令」的重複](http://stackoverflow.com/questions/15846076/command-not-found-after-installation) – 2013-05-01 19:58:21

+0

aha ..不知道爲什麼當我搜索這個問題時我沒有找到那個。哦,好吧......最後把它修好了,這對我來說很重要 – Christophe 2013-05-03 19:02:06

回答

2

我編輯了錯誤的文件。它是.bash_profile而不是.profile

+1

啊,是的,謝謝。忘了它。當我發佈答案時,我無法接受它。 – Christophe 2013-06-20 12:02:52