Npm SELF_SIGNED_CERT_IN_CHAIN on Azure

后端 未结 4 1629
清酒与你
清酒与你 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:44

    Error Name: Error: SELF_SIGNED_CERT_IN_CHAIN

    Steps to be followed to overcome this error:

    1) Update Node.js and npm to its latest version,

    2) Run these three commands in a sequence.

      -npm config set strict-ssl false
      -npm update npm –g
      -npm config set strict-ssl true
    

    3) Set properties proxy and https-proxy in the npm config using these commands:

      -npm config set proxy “http://:8080” 
      -npm config set https-proxy “http://:8080” 
    

提交回复
热议问题