首页 > 安装phantomjs后输入phantomjs --v提示:-bash:phantomjs:command not found

安装phantomjs后输入phantomjs --v提示:-bash:phantomjs:command not found

请教各位大大:
我的系统是 OS X Yosemite 10.10.5
使用官方提供的新版的二进制文件 https://github.com/eugene1g/phantomjs/releases

我想将它添加到环境变量中,我的做法如下:
sudo vim /etc/profile

添加了路径:
export PATH="$PATH:/Users/xxx/myProject/phantomjs-2.0.0-macosx/bin/"

但是问题依然存在:-bash:phantomjs:command not found

奇怪的问题:在我折腾期间,它突然好了,过了一会又出现这个问题了,然后再也没好过,我不知道我修改了什么(印象里啥都没改过)

求好心大大帮助!感谢。


突然间就好了!


https://.com/q/1010000002493848
这个里面的问题和你差不多,修改配置文件后,记得 source

【热门文章】
【热门文章】