Behind Proxy Server

Two commands is needed. Assume HTTP protocol is being uses, and the proxy server hostname is proxy.exmaple.com, and the port is 8080.

npm config set proxy http://proxy.example.com:8080
npm config set https-proxy http://proxy.example.com:8080

Assume the user log in name is username, and the password is password:

npm config set proxy http://username:password@proxy.example.com:8080
npm config set https-proxy http://username:password@proxy.example.com:8080
  • nodejs/behind_proxy_server.txt
  • Last modified: 2018/10/26 15:51
  • by chongtin