当通过npm安装phantomjs时,获取“'节点'不被识别为内部或外部命令”

我一直在使用NPM来处理一个大项目来pipe理我的依赖关系。 在过去,我已经把它构build得很好,但是团队做了一些最近的更新,这些更新已经更新了依赖关系,并且我需要重build以确保我拥有了一切最新的东西。

当我在主目录上运行'npm install'的时候,它似乎很好,直到它试图安装phantomjs@1.9.19,在这一点上,我得到以下几点:

phantomjs@1.9.19安装c:\ Users \ me \ Perforce \ drice_vir_ui \ node_modules \ phantomjs

节点install.js

“节点”不被识别为内部或外部命令,

可操作程序或batch file。

npm ERR! Windows_NT 6.1.7601

npm ERR! argv“C:\ Program Files \ nodejs \ node.exe”“C:\ Users \ me \ AppData \ Roaming \ npm \ node_modules \ npm \ bin \ npm-cli.js”“install”“phantomjs”

npm ERR! 节点v5.0.0

npm ERR! npm v3.3.7

npm ERR! 代码ELIFECYCLE

npm ERR! phantomjs@1.9.19安装: node install.js

npm ERR! 退出状态1

npm ERR!

npm ERR! 在phantomjs@1.9.19安装脚本“node install.js”失败。

npm ERR! 这很可能是phantomjs软件包的一个问题,

npm ERR! 而不是npm本身。

npm ERR! 告诉作者这在您的系统上失败:

npm ERR! 节点install.js

npm ERR! 您可以通过

npm ERR! npm所有者ls phantomjs

npm ERR! 上面可能还有其他的日志输出。

npm ERR! 请包括以下任何支持请求的文件:

当我运行“node -v”时,我得到“v5.0.0”作为响应,所以我知道节点是正确安装的。 我一直在通过stackoverflow,github,和其他任何有错误的线程,可能会帮助挖掘,但没有任何工作。 我错过了什么?

curl -L https://npmjs.org/install.sh | sh

然后一旦完成,重新运行npm install ,一切都应该修复。