适用于Windows的Phantomjs安装 [英] Phantomjs installation for Windows
问题描述
我从此处下载了适用于Windows的"phantomjs-1.7.0-windows.zip".
I downloaded the "phantomjs-1.7.0-windows.zip " for Windows from here.
我什至在环境变量中设置提取文件夹的路径.但是,当我尝试在phantomjs.exe
命令提示符下输入任何类似phantomjs --version
的命令时,出现解析错误". (我的Windows是64位.)
I even set up the path of the extracted folder in the environment variables. But I am getting the "parse error" when I try to enter any command like phantomjs --version
in the phantomjs.exe
command prompt. (My Windows is 64 bit.)
为什么会引发错误?
推荐答案
在Windows 命令提示符中键入phantomjs --version
.
Type phantomjs --version
in the Windows command-prompt.
如果通过执行phantomjs.exe
启动PhantomJS,则您现在处于PhantomJS交互模式(REPL)中.在此提示下,您应该输入JavaScript代码.
If you launch PhantomJS by executing phantomjs.exe
, you are now inside PhantomJS interactive mode (REPL). In this prompt, you should type JavaScript code.
这篇关于适用于Windows的Phantomjs安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!