Node.exe被删除

时间:2015-09-08 06:27:41

标签: node.js npm

尝试使用node.js时,我的Windows 7计算机出现了一个非常奇怪的问题

当我运行基于节点的命令即npm, grunt, yo时,我收到Access is denied.消息,然后node.exe继续删除自身,并且不再是可识别的命令。

'node' is not recognized as an internal or external command, operable program or batch file.

是否有人遇到此问题?这次发生的最后一次是我尝试全局安装yo的时候。它崩溃了,然后node.exe从安装目录中消失了。错误/日志跟踪似乎不会显示安装失败以外的任何内容。

27389 error Windows_NT 6.1.7601
27390 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "yo" "-g"
27391 error node v0.12.7
27392 error npm  v2.11.3
27393 error code ELIFECYCLE
27394 error yo@1.4.8 postinstall: `yodoctor`
27394 error Exit status 1
27395 error Failed at the yo@1.4.8 postinstall script 'yodoctor'.
27395 error This is most likely a problem with the yo package,
27395 error not with npm itself.
27395 error Tell the author that this fails on your system:
27395 error     yodoctor
27395 error You can get their info via:
27395 error     npm owner ls yo
27395 error There is likely additional logging output above.

1 个答案:

答案 0 :(得分:1)

您可能需要在Windows计算机上运行节点时关闭防病毒软件。一些反病毒检测节点是一个不安全的程序。