bower sudo安装错误

时间:2015-06-30 16:38:34

标签: node.js bower

我一直在尝试使用此命令全局安装bower:

 sudo npm install -g bower

当我这样做时,我输入了密码,然后我得到一个加载旋转条。它会像这样保持几分钟,然后输出这些错误:

Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! node v0.12.3
npm ERR! npm  v2.9.1
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect

npm ERR! network connect ETIMEDOUT
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'

不知道最近发生了什么。 Node和NPM是否已过期?

1 个答案:

答案 0 :(得分:0)

我通过简单地从其他位置尝试并使用此post更改权限来实现此目的。似乎只是我的网络。