Nodejs .v0.8.0 npm错误!错误:SSL错误:CERT_UNTRUSTED

时间:2018-12-14 08:59:23

标签: javascript node.js express

我正在尝试在我的应用程序中安装Express,但是很不幸,我收到以下错误消息:

  C:\Users\adgol\EaselJS-NodeJS\examples>npm install express
npm http GET https://registry.npmjs.org/express
npm ERR! Error: SSL Error: CERT_UNTRUSTED
npm ERR!     at ClientRequest.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\main.js:409:26)
npm ERR!     at ClientRequest.g (events.js:185:14)
npm ERR!     at ClientRequest.EventEmitter.emit (events.js:88:17)
npm ERR!     at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1445:7)
npm ERR!     at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
npm ERR!     at CleartextStream.socketOnData [as ondata] (http.js:1356:20)
npm ERR!     at CleartextStream.CryptoStream._push (tls.js:396:27)
npm ERR!     at SecurePair.cycle (tls.js:751:20)
npm ERR!     at EncryptedStream.CryptoStream.write (tls.js:131:13)
npm ERR!     at Socket.ondata (stream.js:38:26)
npm ERR!  [Error: SSL Error: CERT_UNTRUSTED]
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express"
npm ERR! cwd C:\Users\adgol\EaselJS-NodeJS\examples
npm ERR! node -v v0.8.0
npm ERR! npm -v 1.1.32
npm ERR! message SSL Error: CERT_UNTRUSTED
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\adgol\EaselJS-NodeJS\examples\npm-debug.log
npm ERR! not ok code 0

我已尝试通过堆栈溢出解决不同的解决方案,但没有一个起作用,由于需要,我正在为应用程序使用节点v0.8.0

这是我的应用程序中的包json文件

{
    "name": "node-easel-examples-requirements",
    "description": "EaselJS port to node, using node-canvas.",
    "version": "0.1.0",
    "author": "Wes Gorgichuk <wes@gskinner.com>",
    "keywords": ["canvas", "graphic", "graphics", "image", "images", "easel"],
    "dependencies": {
        "express": "3.x"
    },
    "engines": { "node": ">= 0.8.0 && < 1.0.0" }
}

我该怎么办才能消除此错误?

0 个答案:

没有答案