Show pageBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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''. ===== Proxy without Password===== <code> npm config set proxy http://proxy.example.com:8080 npm config set https-proxy http://proxy.example.com:8080 </code> ===== Proxy with Password===== Assume the user log in name is ''username'', and the password is ''password'': <code> npm config set proxy http://username:password@proxy.example.com:8080 npm config set https-proxy http://username:password@proxy.example.com:8080 </code> ===== To View the Current Setting===== Assume the user log in name is ''username'', and the password is ''password'': <code> npm config get proxy npm config get https-proxy </code> ===== To Delete the Old Setting===== Assume the user log in name is ''username'', and the password is ''password'': <code> npm config delete proxy npm config delete https-proxy </code> nodejs/behind_proxy_server.txt Last modified: 2020/01/10 10:19by chongtin