2017-07-17 9 views
0
E:\Harish\Deploy>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 

NPM - angularjs2のCLI

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:\Windows\system32 
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:\Windows\system32\npm-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を使用しています「ECONNRESETを読んで」。インストール時にnpm install -g @ angular/cliをインストールする

接続が拒否され、プロキシエラーが発生しています。また、npmレジストリにプロキシ設定を登録しました。同じプロキシ接続が拒否されました。 。

uは、プロキシの背後に実行している場合は、プロキシの設定は、この問題を解決するためにどのように適切に

設定していることを確認してください?

npm ERR!ネットワークプロキシを使用している場合は、npmのERR!ネットワーク 'プロキシ'設定が適切に設定されています。参照: 'npm help config'

npm ERR!サポートリクエストに以下のファイルを含めてください:npm ERR! C:\ WINDOWS \ System32に\ NPM-debug.logに

But it didn't resolve my issue 

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

最新のnodejsをインストールする必要がありますhttps://nodejs.org/dist/v6.11.1/node-v6.11.1-x64.msi –

+0

@VindhyachalKumar ..でも、私はnode-v6.11.1をインストールしました。私も上記と同じです – Harish

+0

ノード-vを使用してノードのバージョンをチェックしてください。 –

答えて

0
npm install -g @angular/cli --registry=https://registry.npmjs.org 

これは私のために動作します。

関連する問題