nodejs:behind_proxy_server

Action disabled: revisions

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

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

npm config get proxy
npm config get https-proxy

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

npm config delete proxy
npm config delete https-proxy
  • nodejs/behind_proxy_server.txt
  • Last modified: 2020/01/10 10:19
  • by chongtin