npm安装凉亭失败

时间:2015-07-11 06:33:15

标签: node.js npm ionic-framework bower

我正在尝试使用npm在Mac OS Yosemite上安装bower,但它失败并显示以下消息

npm ERR! fetch failed http://registry.npmjs.org/nopt/-/nopt-3.0.3.tgz
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT
npm ERR! fetch failed http://registry.npmjs.org/request/-/request-2.53.0.tgz
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT
npm ERR! fetch failed http://registry.npmjs.org/shell-quote/-/shell-quote-1.4.3.tgz
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! node v0.12.7
npm ERR! npm  v2.12.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'

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/larris/npm-debug.log

我已经使用npm

成功安装了其他软件包
   /usr/local/lib
├── cordova@5.1.1
├── gulp@3.9.0
├── ionic@1.6.1
├── npm@2.12.1
└── yo@1.4.7

但是当我尝试安装凉亭时,我得到了上述错误。我不在任何防火墙后面,我的npm配置是

; cli configs
user-agent = "npm/2.12.1 node/v0.12.7 darwin x64"

; userconfig /Users/larris/.npmrc
registry = "http://registry.npmjs.org/"
strict-ssl = false

; builtin config undefined
prefix = "/usr/local"

; node bin location = /usr/local/bin/node
; cwd = /Users/larris
; HOME = /Users/larris
; 'npm config ls -l' to show all defaults.

0 个答案:

没有答案