且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

casperjs找不到phantomjs

更新时间:2023-11-21 16:09:04

解决方案实际上非常简单.只需导出phantomjs二进制文件所在的路径即可.在我的情况下,这是/Users/Tom/Downloads/phantomjs-1.9.2/bin,因此

The solution is actually very simple. Just export the path where the binary of phantomjs is. In my case this is /Users/Tom/Downloads/phantomjs-1.9.2/bin, hence

export PATH=$PATH:/Users/Tom/Downloads/phantomjs-1.9.2/bin