How to clear https proxy setting of NPM?

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

    By the default value npm is looking for packages from https://registry.npmjs.org. What you also need to do is override the registry and strict-ssl values.

    npm config set registry "http://registry.npmjs.org"
    npm config set strict-ssl false
    

提交回复
热议问题