How to clear https proxy setting of NPM?

前端 未结 30 2250
长发绾君心
长发绾君心 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:34

    This was already answered but I think the --global config is not covered properly.

    By running npm config rm proxy you remove proxy from user configuration.
    This can be easily verified by running: npm config list.

    If there is proxy or https-proxy setting set in global config you have to use --global in the command to remove it.

    So at the end this will clean-up proxies from both local and global configs:

    npm config rm proxy
    npm config rm https-proxy
    npm config --global rm proxy
    npm config --global rm https-proxy
    

提交回复
热议问题