【发布时间】:2014-07-10 14:10:02
【问题描述】:
每当我运行 npm install 时,都会出现错误
错误:SELF_SIGNED_CERT_IN_CHAIN。
如何解决这个错误?
【问题讨论】:
每当我运行 npm install 时,都会出现错误
错误:SELF_SIGNED_CERT_IN_CHAIN。
如何解决这个错误?
【问题讨论】:
即使我曾经也遇到过这个错误。请尝试以下步骤。
克服此错误应遵循的步骤:
1) 依次运行这三个命令。
npm config set strict-ssl false
npm 更新 npm –g
npm config set strict-ssl true
2) 使用以下命令在 npm 配置中设置属性代理和 https-proxy:
npm config set proxy="http://"proxy-name":8080"
npm 配置集 https-proxy=“http://"proxy-name":8080”
然后尝试使用您尝试过的命令安装您的软件包。
希望这会有所帮助。
【讨论】: