错误:尝试安装Node-Red时出现CERT_UNTRUSTED

时间:2018-11-27 11:25:01

标签: node.js npm nvm debian-jessie

当我尝试安装Node-Red时

sudo npm install -g --unsafe-perm node-red

我得到一个错误:

GET https://registry.npmjs.org/node-red
GET https://registry.npmjs.org/node-red
GET https://registry.npmjs.org/node-red
Error: CERT_UNTRUSTED
    at TLSSocket.<anonymous> (_tls_wrap.js:644:36)
    at TLSSocket.EventEmitter.emit (events.js:100:17)
    at TLSSocket._finishInit (_tls_wrap.js:275:8)
If you need help, you may report this log at:
    <http://github.com/isaacs/npm/issues>
or email it to:
    <npm-@googlegroups.com>

System Linux 3.14.60-fslc-imx6-sr
command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "--unsafe-perm" "node-red"
cwd /home/debian
node -v v0.11.7
npm -v 1.3.8

Additional logging details can be found in:
    /home/debian/npm-debug.lgo
not ok code 0

顺便说一句。节点和npm的版本似乎是错误的,我有节点v10.13.0和npm 6.4.1 尽管在错误消息中显示了其他内容(?)

0 个答案:

没有答案