LoginSignup
17
15

More than 5 years have passed since last update.

OS X El Capitan‎ で phantomjs をインストールする

Posted at

概要

  • homebrewでphantomjsをインストールできない問題が発生
$ brew install phantomjs
phantomjs: This formula either does not compile or function as expected on OS X
versions newer than Yosemite due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.

原因

対策

  • でも、バイナリから入れるのはちょっと抵抗あるなぁと思っていろいろ調べたらこんな記事が
  • https://github.com/Homebrew/homebrew/issues/44535

  • どうやら、npm経由でインストールできるとのこと

brew install npm # 入っていない方のみ
npm install phantom phantomjs -g

結果

  • 無事インストールされました
$ phantomjs -v
1.9.8
  • v2.0は入らないのは時間があるときに調査ということで〜
17
15
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
15