2013-05-01 60 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