Check out example codes for "npm ERR! network If you are behind a proxy, please make sure that the ;proxy' config is set properly.". It will help you in understanding the concepts better.

Code Example 1

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

If your organization use proxy , add proxy :

- npm config set proxy "http://username:[email protected]:proxy-port"

- npm config set https-proxy "http://username:[email protected]oxy-url:proxy-port"

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com