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

node.js安装grunt报错?

node.js安装grunt报错?

usingooo 2015-03-03 14:32:47
C:\WINDOWS\system32>npm --registry=http://r.cnpmjs.org install cnpm -gnpm ERR! Windows_NT 6.2.9200npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "--registry=http://r.cnpmjs.org" "install" "cnpm" "-g"npm ERR! node v0.12.0npm ERR! npm  v2.5.1npm ERR! code ETIMEDOUTnpm ERR! errno ETIMEDOUTnpm ERR! syscall connectnpm ERR! network connect ETIMEDOUTnpm ERR! network This is most likely not a problem with npm itselfnpm 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! networknpm ERR! network If you are behind a proxy, please make sure that thenpm ERR! network 'proxy' config is set properly.  See: 'npm help config'npm ERR! Please include the following file with any support request:npm ERR!     C:\WINDOWS\system32\npm-debug.log这是什么原因??
查看完整描述

2 回答

?
Lyn丶

TA贡献1条经验 获得超0个赞

用管理员的身份运行cmd.exe 以进行全局安装

查看完整回答
反对 回复 2015-03-03
  • 2 回答
  • 0 关注
  • 6606 浏览
慕课专栏
更多

添加回答

举报

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