Phantomjs 使可执行文件在mac os的任何位置都能工作
我在mac上安装了phantomjs。我想当我在终端Phantomjs 使可执行文件在mac os的任何位置都能工作,phantomjs,Phantomjs,我在mac上安装了phantomjs。我想当我在终端phantomjs xx.js中输入时,它应该可以工作。然而,它只是返回 -bash:phantomjs:command未找到 然后我发现phantomjs文件位于 /usr/local/cell/phantomjs/2.0.0/bin 只有在该目录中,我才能使用命令phantomjs。 我的问题是如何使命令phantomjs在其他位置工作,例如/Usr/Documents/…谢谢 看看这个@zLan明白了。谢谢
phantomjs xx.js
中输入时,它应该可以工作。然而,它只是返回
-bash:phantomjs:command未找到
然后我发现phantomjs文件位于
/usr/local/cell/phantomjs/2.0.0/bin
只有在该目录中,我才能使用命令phantomjs
。
我的问题是如何使命令
phantomjs
在其他位置工作,例如/Usr/Documents/…
谢谢 看看这个@zLan明白了。谢谢