我很清楚这个问题的根源,因为npm
在他们的博客上写道:http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more
解决方案是:
1)升级npm版本
npm install npm -g
or
2) 告诉您当前版本的 npm 使用已知的注册商
npm config set ca ""
但是,这些解决方案都不适用于 Elastic Beanstalk。npm
与安装的节点版本(v0.10.10)相关联,并且无法告诉当前的 npm 版本使用已知的注册商。
我为 NodeJS 运行 64 位 Amazon Linux 实例
将此命令添加到.ebextensions
没有帮助:
container_commands:
01_npm-fix:
command: /opt/elasticbeanstalk/node-install/node-v0.10.10-linux-x64/bin/npm config set ca ""
有人想出了解决方案吗?
我也为此苦苦挣扎。使固定:https://gist.github.com/anonymous/fb32a4b053fe121b0b03 https://gist.github.com/anonymous/fb32a4b053fe121b0b03。当应用在container_commands
npm install
已经运行了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)