码迷,mamicode.com
首页 > 其他好文 > 详细

bower 安装网络错误

时间:2016-02-01 17:49:27      阅读:376      评论:0      收藏:0      [点我收藏+]

标签:

npm install -g bower报错:

$ npm install -g bower
npm ERR! network getaddrinfo ENOTFOUND
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 settin
gs.
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! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files
(x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower"
npm ERR! cwd d:\Cpy Work\Yohaat Work\YOHAAT
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     d:\Cpy Work\Yohaat Work\YOHAAT\npm-debug.log

  经过搜寻说是npm config set key错误,改了好几次http-proxy,proxy发现没有用,后来用npm config ls -l 查看了所有的config才发现是 registry "https://registry.npmjs.org/"被注释掉,虽然不知道是啥时候改,把注释去掉之后再install就成功了,所以大家如果遇到这种问题可以先查查registry参数是否设置了,再查问题或许更快解决。

bower 安装网络错误

标签:

原文地址:http://www.cnblogs.com/vinityNxr-2015/p/5175497.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!