How to clear https proxy setting of NPM?

前端 未结 30 2318
长发绾君心
长发绾君心 2020-11-29 14:59

How can I clear the previous ssl proxy setting of NPM? well, I search a lot, but all post I got is mainly about how to set proxy in corporate network.

30条回答
  •  悲&欢浪女
    2020-11-29 15:31

    In my case (Linux Mint 16 based on Ubuntu), I had to:

    1. npm config delete https-proxy, and also

    2. clear the https_proxy Bash environment parameter — oddly enough, although I cannot find this behavior documented anywhere, npm fallbacks to https_proxy:

      $ http_proxy='' https_proxy='' npm config get https-proxy
      null
      $ http_proxy='' xxhttps_proxy='' npm config get https-proxy
      https://1.2.3.4:8080
      

提交回复
热议问题