1npm config set proxy http://username:password@host:port
2npm config set https-proxy http://username:password@host:port
3
1proxy=http://username:password@host:port
2https-proxy=http://username:password@host:port
3https_proxy=http://username:password@host:port
4
1//set proxy
2npm config set proxy "http://domain\username:password@servername:port/"
3npm config set proxy "http:ip:port/"
4//remove procy
5npm config rm proxy
6npm config rm https-proxy