相关疑难解决方法(0)

使用npm时收到错误:'错误:SSL错误:SELF_SIGNED_CERT_IN_CHAIN'

我在ubuntu上使用npm v1.0.104/node 0.6.12 - 我在尝试通过npm安装任何新模块时收到下面复制的错误(我之前使用http测试了socket.io,而不是https但是我想知道是否可以导致npm/unsigned certs的问题).一旦npm尝试解析' https: //registry.npmjs.org'URL,该错误就会弹出.无论如何我可以忽略错误或者可能找到/添加证书到受信任的商店以继续使用npm.

任何有关解决问题需要做什么的见解都将受到赞赏(我希望通过配置来解决问题,而不是在可能的情况下重新安装).

错误:"错误:SSL错误:SELF_SIGNED_CERT_IN_CHAIN"

完整消息:

npm ERR! Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/request/main.js:252:28)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR!     at CleartextStream.ondata (http.js:1150:24)
npm ERR!     at CleartextStream._push (tls.js:375:27)
npm ERR!     at SecurePair.cycle (tls.js:734:20)
npm ERR!     at EncryptedStream.write (tls.js:130:13)
npm ERR!     at Socket.ondata (stream.js:38:26)
npm ERR!     at Socket.emit (events.js:67:17)
npm ERR! Report this *entire* log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or …
Run Code Online (Sandbox Code Playgroud)

ssl-certificate node.js npm

274
推荐指数
11
解决办法
21万
查看次数

标签 统计

node.js ×1

npm ×1

ssl-certificate ×1