可能是太简单了?搜网上并没有踩坑教程。
搜索MAC上安装phantomjs,得到下面方法:
下载phantomjs.zip并解压,bin/phantomjs直接可用。
或者通过Homebrew安装
brew update && brew install phantomjs
或者通过MacPorts安装
sudo port selfupdate && sudo port install phantomjs
这是三种方法,都踩了一遍坑。