【发布时间】:2016-08-27 21:33:34
【问题描述】:
我正在尝试在我的 Mac (Yosemite) 上安装 PhantomJS。
我做了以下事情:
npm install phantomjs
然后我做了:
npm install phantomjs-prebuilt
这两个都出现在我的 node_modules 中。但是当我尝试运行 phantomjs --version我得到 p>
-bash: phantomjs: command not found
还尝试从下载网站安装二进制文件,但没有。我错过了什么?最终目标是使用 casperjs,但目前 casper 正在询问
Fatal: [Errno 2] No such file or directory; did you install phantomjs?
我以为我做到了....?
【问题讨论】:
标签: installation phantomjs casperjs