npm 不起作用 - 安装 Angularjs2 CLI 时"读取 ECONNRESET"


E:HarishDeploy>npm install -g @angular/cli
npm http GET https://registry.npmjs.org/yo
npm http GET https://registry.npmjs.org/yo
npm http GET https://registry.npmjs.org/yo
npm ERR! network read ECONNRESET

And i also tried npm registery settings npm config set registry 
http://registry.npmjs.org/

But it didn't resolve my issue

Any Idea About this?How to overcome this proxy connection settings

npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network 
settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program 
Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "yo"
npm ERR! cwd C:Windowssystem32
npm ERR! node -v v0.10.17
npm ERR! npm -v 1.3.8
npm ERR! syscall read
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:Windowssystem32npm-debug.log
npm ERR! not ok code 0
And i also tried npm registery settings npm config set registry 
http://registry.npmjs.org/

我正在使用节点 8.1.3 和 npm 5.0.3。当我安装 npm install -g @angular/cli 时

我收到连接被拒绝和一些代理错误。我还在 npm 注册表中注册了代理设置,但我收到相同的代理连接被拒绝错误请错误图像作为附件。

如果您在代理后面运行,请确保代理配置设置正确

如何解决此问题?

npm ERR! 网络如果您在代理后面,请确保正确设置了 npm ERR! 网络"代理"配置。请参阅:"npm 帮助配置">

呵呵!请在任何支持请求中包含以下文件:npm ERR!C:\Windows\System32pm-debug.log

But it didn't resolve my issue
Any Idea About this?How to overcome this proxy connection settings 
npm install -g @angular/cli --registry=https://registry.npmjs.org

这对我有用。

最新更新