打开 http://phantomjs.org/download.html 选择Mac OS X 下的点击下载 下载完成后,解压缩 vim ~/.bash_profile加入一行如下 执行source后,输入phantomjs