今天我通过卸载旧版本更新了节点版本。我安装的最新版本是4.5.0 LTS。安装后,当我尝试安装新的npm时,它不起作用并给我以下错误
C:\Users\myuser
λ npm install -g yo
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo"
npm ERR! node v0.12.15
npm ERR! npm v2.15.1
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! syscall connect
npm ERR! Error: connect EACCES
npm ERR! at exports._errnoException (util.js:746:11)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1012:19)
npm ERR! { [Error: connect EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'connect' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\myuser\npm-debug.log
我在Powershell中使用具有管理员权限的命令行尝试过它。试图安装其他几个插件。什么都行不通。也关闭了防火墙并试过,没有运气。安装了旧版本的NodeJS,问题仍然存在。
我正在使用Windows 10.我检查了我是否在代理服务器后面,但也是否。
我真的需要帮助来解决这个问题。
答案 0 :(得分:2)
我找到了解决问题的方法。
问题是我的病毒防护Kespersky Endpoint Security 10正在阻止我机器中的节点。
当我将它添加到白名单时,它完美无缺。
谢谢