3
今天我通过卸载旧版本更新了节点版本。我安装的最新版本是4.5.0 LTS。安装后,当我尝试安装一个新的NPM,它不工作,给我下面的错误节点JS中的EACCESS错误
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,我检查是否是我背后的代理,但也号
我真的需要帮助来解决这个问题。
https://docs.npmjs.com/getting-started/fixing-npm-permissions? –
@YanFoto感谢您的评论,但我试过了,不工作 – Mujahid