Npm SELF_SIGNED_CERT_IN_CHAIN on Azure

后端 未结 4 1650
清酒与你
清酒与你 2020-12-10 12:18

Since npm dropped support for self signed certs yesterday, I can no longer install any packages from npm running on Windows Azure.

On my local machine I could solve

4条回答
  •  余生分开走
    2020-12-10 12:32

    You can't run npm install npm -g. npm install being broken is the problem, remember? A good tip from the comments on npm's blog post, worked like a charm:

    npm config set strict-ssl false
    
    npm install npm -g
    
    npm config set strict-ssl true
    

    You may need to use sudo.

提交回复
热议问题