SELF_SIGNED_CERT_IN_CHAIN error on Elastic Beanstalk for NodeJS

前端 未结 5 934
终归单人心
终归单人心 2021-01-15 14:05

I\'m well aware of the root of this issue, as npm wrote on their blog: http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more

Th

5条回答
  •  滥情空心
    2021-01-15 14:49

    Was having the same issue today. I fixed it by setting my global npmrc file, as follows:

    02_no-cert:
      command: "rm -rf /opt/elasticbeanstalk/node-install/node-v0.10.21-linux-x64/etc && mkdir /opt/elasticbeanstalk/node-install/node-v0.10.21-linux-x64/etc && echo 'ca = ' > /opt/elasticbeanstalk/node-install/node-v0.10.21-linux-x64/etc/npmrc"
      ignoreErrors: true
    

提交回复
热议问题