Saturday 6 August 2016

npm Error: npm ERR! network read ECONNRESET

Node Error:

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 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 settin
gs.
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'

This happened because npm is not able to connect with https. Change the https to http, and it will work.

npm config set registry http://registry.npmjs.org/

No comments:

Post a Comment