How to clear https proxy setting of NPM?

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

    I had the same problem once.
    Follow these steps to delete proxy values:

    1.To delete proxy in npm:
    (-g is Important)
    npm config delete proxy -g
    npm config delete http-proxy -g
    npm config delete https-proxy -g

    Check the npm config file using:
    npm config list

    2.To delete system proxy: set HTTP_PROXY=null set HTTPS_PROXY=null

    Now close the command line and open it to refresh the variables(proxy).

提交回复
热议问题