xxxxxxxxxx
npm config set registry http://registry.npmjs.org/
npm config set http-proxy http://username:password@ip:port
npm config set https-proxy http://username:password@ip:port
npm config set proxy http://username:password@ip:port
npm set strict-ssl false
xxxxxxxxxx
npm config set proxy http://username:password@host:port
npm config set https-proxy http://username:password@host:port
xxxxxxxxxx
//set proxy
npm config set proxy "http://domain\username:password@servername:port/"
npm config set proxy "http:ip:port/"
//remove procy
npm config rm proxy
npm config rm https-proxy
xxxxxxxxxx
npm config rm proxy
npm config rm https-proxy
npm config --global rm proxy
npm config --global rm https-proxy
Step 1: Set the proxy for npm:
Open your terminal or command prompt and run the following command:
Step 2: Set the HTTPS proxy for npm:
Run the following command in your terminal or command prompt:
xxxxxxxxxx
npm config set https-proxy http://10.54.225.222:3128
npm config set proxy http://10.54.225.222:3128
xxxxxxxxxx
proxy=http://username:password@host:port
https-proxy=http://username:password@host:port
https_proxy=http://username:password@host:port