为了账号安全,请及时绑定邮箱和手机立即绑定

尝试安装任何模块时出现“无法从注册表获取消息”

尝试安装任何模块时出现“无法从注册表获取消息”

慕沐林林 2019-10-04 14:28:08
我无法从npm安装任何节点模块。npm install socket.io上面的命令导致以下输出,它无法安装socket.ionpm http GET https://registry.npmjs.org/socket.ionpm ERR! Error: failed to fetch from registry: socket.ionpm ERR!     at /opt/node0610/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:139:12npm ERR!     at cb (/opt/node0610/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:32:9)npm ERR!     at Request._callback (/opt/node0610/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:137:18)npm ERR!     at Request.callback (/opt/node0610/lib/node_modules/npm/node_modules/request/main.js:109:22)npm ERR!     at Request.<anonymous> (/opt/node0610/lib/node_modules/npm/node_modules/request/main.js:198:58)npm ERR!     at Request.emit (events.js:88:20)npm ERR!     at ClientRequest.<anonymous> (/opt/node0610/lib/node_modules/npm/node_modules/request/main.js:195:10)npm ERR!     at ClientRequest.emit (events.js:67:17)npm ERR!     at CleartextStream.<anonymous> (http.js:1134:11)npm ERR!     at CleartextStream.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 2.6.18-194.el5npm ERR! command "node" "/opt/node0610/bin/npm" "install" "socket.io"npm ERR! cwd /opt/node0610/lib/node_modulesnpm ERR! node -v v0.6.10npm ERR! npm -v 1.1.0-3npm ERR! message failed to fetch from registry: socket.ionpm ERR! npm ERR! Additional logging details can be found in:npm ERR!     /opt/node0610/lib/node_modules/npm-debug.lognpm not ok我的NPM版本是:[applmgr@dev node_modules]$ npm --version1.1.0-3我的NodeJS版本是:[applmgr@dev node_modules]$ node --versionv0.6.10
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 615 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信