gpt4 book ai didi

node.js - Elastic Beanstalk for NodeJS 上的 SELF_SIGNED_CERT_IN_CHAIN 错误

转载 作者:太空宇宙 更新时间:2023-11-03 22:01:36 28 4
gpt4 key购买 nike

我很清楚这个问题的根源,正如 npm 在他们的博客上写道:http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more

解决方案是:

1) upgrade your version of npm

npm install npm -g

or

2) tell your current version of npm to use known registrars

npm config set ca ""

但是,这些解决方案都不适用于 Elastic Beanstalk。 npm与安装的 Node 版本(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 。在 container_commands 中应用时,npm install 已经运行。

关于node.js - Elastic Beanstalk for NodeJS 上的 SELF_SIGNED_CERT_IN_CHAIN 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22096459/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com