If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' code example

Example 1: npm ERR! errno ECONNRESET

first add this:
- npm config set registry http://registry.npmjs.org/

If your organization use proxy , add proxy :

- npm config set proxy "http://username:password@proxy-url:proxy-port"

- npm config set https-proxy "http://username:password@proxy-url:proxy-port"

Example 2: npm ERR! network If you are behind a proxy, please make sure that the

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