[英]Issues installing PhantomJS for windows: command not recognized
following the docs here: http://attester.ariatemplates.com/usage/phantom.html , I am trying to install phantomjs on my windows machine. 按照这里的文档: http ://attester.ariatemplates.com/usage/phantom.html,我试图在我的Windows机器上安装phantomjs。
I tried adding multiple lines to my Path system variable, and yet, I get the same error in the command prompt when I type in phantomjs --version
. 我尝试在我的Path系统变量中添加多行,然而,当我键入
phantomjs --version
时,我在命令提示符中得到了相同的错误。
" 'phantomjs' is not recognized as an internal or external command, operable program or batch file." “'phantomjs'不被视为内部或外部命令,可操作程序或批处理文件。”
I added the phantomjs.exe to C:\\phantomjs\\bin\\
, and added C:\\phantomjs\\bin\\phantomjs
to the path, and any variation that I could think of, such as: 我将phantomjs.exe添加到
C:\\phantomjs\\bin\\
,并将C:\\phantomjs\\bin\\phantomjs
到路径中,以及我能想到的任何变体,例如:
C:\phantomjs\bin\phantomjs.exe\; C:\phantomjs\bin; C:\phantomjs\bin\phantomjs\;
How am I not installing this right? 我怎么不安装这个?
You don't need to put all the directories to the environment PATH variable. 您不需要将所有目录都放到环境PATH变量中。
Add only following to your path and restart your command prompt. 仅在路径中添加以下内容并重新启动命令提示符。
C:\\phantomjs\\bin\\
将phantomjs.exe添加到C:\\ Windows \\ System32文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.