我正在尝试使用英特尔®酷睿™i5-4258U CPU @ 2.40GHz×4和运行Ubuntu 13.10的Lenovo u430安装node,express和mongo。我正在尝试使用this guide。
当我到达跑步的步骤(使用sudo)时
npm install -g express
我收到以下错误:
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express/-/express-3.4.4.tgz
npm ERR! failed to fetch https://registry.npmjs.org/express/-/express-3.4.4.tgz
npm ERR! Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN
npm ERR! at ClientRequest.<anonymous> /usr/local/lib/node_modules/npm/node_modules/request/main.js:356: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! 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!
npm ERR! System Linux 3.11.0-20-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "express"
npm ERR! cwd /usr/local/src/npm
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.1
npm ERR! message SSL Error: SELF_SIGNED_CERT_IN_CHAIN
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/src/npm/npm-debug.log
npm not ok
我注意到msg的错误告诉我我有节点-v v0.6.11,但是当我运行时 节点-v 从cl它不返回任何东西。但是,如果我跑 nodejs -v 从命令行我得到 v0.10.28 我已经做了几个小时的搜索,但却找不到任何解决方案/解决方法。