【问题标题】:bower installation failed.. npm is errors?bower 安装失败.. npm 是错误?
【发布时间】:2015-02-09 14:51:50
【问题描述】:

安装凉亭我有问题

我使用这个命令:sudo npm install bower -g

npm http GET https://registry.npmjs.org/bower

npm ERR! Error: failed to fetch from registry: bower
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/ahmad/npm-debug.log npm
npm ERR! 
npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "node" "/usr/bin/npm" "install" "bower" "-g"
npm ERR! cwd /home/ahmad
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: bower
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ahmad/npm-debug.log
npm not ok

我的 npm 版本是:1.1.4

我的节点版本是:v0.6.12

【问题讨论】:

    标签: bower-install


    【解决方案1】:

    注册表调用是一个 HTTPS 请求,看起来它失败了。您可能遇到网络连接问题,或者代理设置不正确,或者您的防病毒软件阻止了来自 npm 的 Web 请求。

    【讨论】:

      猜你喜欢
      • 2018-12-10
      • 2018-03-08
      • 2018-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-15
      • 2016-11-08
      • 1970-01-01
      相关资源
      最近更新 更多