升级到10.11(El Capitan)后,我无法在我的macbook中安装phantomJs。在MacOs上安装PhantomJS 10.11 El Captian
每当我尝试安装使用自制它,它给了我这个错误:
$ brew install phantomjs
phantomjs: OS X Yosemite or older is required.
Error: An unsatisfied requirement failed this build.
升级到10.11(El Capitan)后,我无法在我的macbook中安装phantomJs。在MacOs上安装PhantomJS 10.11 El Captian
每当我尝试安装使用自制它,它给了我这个错误:
$ brew install phantomjs
phantomjs: OS X Yosemite or older is required.
Error: An unsatisfied requirement failed this build.
Something is broken since Xcode 7,如果你有故宫,你可以安装它:
npm install -g phantomjs-prebuilt
既然问题已经处理完毕,你可以download it。
是的,你说得对。我终于安装了它使用npm – jfcorugedo
@ jfcorugedo很高兴它帮助:) –
仅供参考...这个npm安装程序现在叫做phantomjs-prebuilt。 –
如果不行尝试:
酿造安装NPM
npm install phantom phantomjs -g
需要注意的是:
npm install -g phantomjs
将安装v1.9.8
最新预览版本v2.0.1
正常工作在10.11 El Captian是available as a binary download。
只需从您的计算机上下载bin/phantomjs
到/usr/local/bin/
(或任何您想要的位置)即可。
npm install -g phantomjs将安装2.1.1以及 –
安装单机phantomjs(在Mac OSX厄尔尼诺上尉好测试)的最快和最简单的方法(使用BREW或MacPorts的安装时间太长的时间,因为他们将安装整个Qt和其他包)
酿造解压phantomjs-2.0.0-macosx.zip安装UPX
UPX -d phantomjs-2.0.0-MacOSX的/ bin中/ phantomjs
添加phantomjs到系统路径在终端:sudo的纳米/等/路径
最新发布的二进制文件(2.1.1)的Mac是,在包括二进制所有的依赖。它的工作原理开箱http://phantomjs.org/download.html
brew update
然后
brew install phantomjs
对于我来说,既没有酿造也没有从phantomjs.org 2.1版本下载不起作用。我整晚都在苦苦挣扎。降级到2.0后(从https://github.com/eugene1g/phantomjs/releases下载),一切正常。我在Mac Os Sierra上使用验证测试进行验收测试。 –
使用安装它通过自制或MacPorts的
brew install phantomjs
或
port install phantomjs
检查版本:phantomjs --version
哪个会安装最新版本。目前:2.1.1
我的Mac OSX版本:OS X El Capitan - Version 10.11.6
谢谢!
同上Sierra –
你应该看看[Github问题](https://github.com/Homebrew/homebrew/issues/44525) –