1first add this:
2- npm config set registry http://registry.npmjs.org/
3
4If your organization use proxy , add proxy :
5
6- npm config set proxy "http://username:password@proxy-url:proxy-port"
7
8- npm config set https-proxy "http://username:password@proxy-url:proxy-port"