SELF_SIGNED_CERT_IN_CHAIN error on Elastic Beanstalk for NodeJS

前端 未结 5 958
终归单人心
终归单人心 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:52

    So I figured out a way to make it work:

    Put this in .ebextensions:

    commands:
      01_enable_rootaccess:
        command: echo Defaults:root \!requiretty >> /etc/sudoers
      02_no-cert:
        command: sudo /opt/elasticbeanstalk/node-install/node-v0.10.10-linux-x64/bin/npm config set ca ""
    

    Worked like a charm in my case.

提交回复
热议问题