Node.js 正在删除Node.exe
在尝试使用node.js时,我遇到了一个非常奇怪的问题:我的windows 7计算机 偶尔,当我运行基于节点的命令时,即Node.js 正在删除Node.exe,node.js,npm,Node.js,Npm,在尝试使用node.js时,我遇到了一个非常奇怪的问题:我的windows 7计算机 偶尔,当我运行基于节点的命令时,即npm、grunt、yo我会收到一条访问被拒绝的消息。消息,node.exe会继续删除自身,不再是可识别的命令 'node' is not recognized as an internal or external command, operable program or batch file. 有人提到过这个问题吗?上次发生这种情况是在我试图在全球范围内安装yo时。它崩溃了
npm、grunt、yo
我会收到一条访问被拒绝的消息。
消息,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.
在windows计算机上运行node时,可能需要关闭防病毒软件。某些抗病毒药物将节点检测为不安全的程序。您确定它不仅仅是在修改路径吗?您将node.exe安装到哪个目录中?你在那里有完全的特权吗?我见过这样的情况:如果不适当地修改某些目录,Windows将从备份中自动恢复这些目录。我想知道如果您从管理员登录名安装node是否会有所不同?@geogesimms我确信,node.exe正在被删除,nodejs目录仍然存在于PATH变量中@jfriend00它安装在默认位置
C:\Program Files\nodejs
你是对的,由于某种原因,它触发了我的防病毒程序,而它在我所有同事的机器上运行得非常好。