执行npm install -g forever 后出错

骑着骆驼写程序 2015-11-06 02:05:48
linux中安装了nodejs,现在要装forever来进行应用管理,但是执行命令npm install -g forever 后报错:

npm ERR! Linux 2.6.18-274.el5
npm ERR! argv "/root/node-v0.12.7-linux-x64/bin/node" "/root/node-v0.12.7-linux-x64/bin/npm" "install" "-g" "forever"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo

npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR! /home/node/bin/npm-debug.log

请问这个是什么原因
...全文
1027 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
threedong 2016-03-16
  • 打赏
  • 举报
回复
你肯定用过代理,设置下代理就行了

5,006

社区成员

发帖
与我相关
我的任务
社区描述
解读Web 标准、分析和讨论实际问题、推动网络标准化发展和跨浏览器开发进程,解决各种兼容性问题。
社区管理员
  • 跨浏览器开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧