2015-04-06 85 views
0

我目前正在嘗試使用鮑爾安裝聚合物的紙張組件,但我收到錯誤。鮑爾未能安裝聚合物/紙張元素

我已經試過:

  • 運行 '涼亭緩存清除'
  • 把它在我的bower.json和使用 '亭子更新'

但是,不管我怎麼努力我最終得到了一些沿着這些路線的東西(有時是它在變化時失敗的元素):

bower polymer-test-tools#^0.5   cached git://github.com/Polymer/polymer-test-tools.git#0.5.5 
bower polymer-test-tools#^0.5   validate 0.5.5 against git://github.com/Polymer/polymer-test-tools.git#^0.5 
bower core-drawer-panel#^0.5   ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/Polymer/core-drawer-panel.git", exit code of #128 

Additional error details: 
fatal: unable to connect to github.com: 
github.com[0: 192.30.252.130]: errno=Operation timed out 

Stack trace: 
Error: Failed to execute "git ls-remote --tags --heads git://github.com/Polymer/core-drawer-panel.git", exit code of #128 
    at createError (/usr/local/lib/node_modules/bower/lib/util/createError.js:4:15) 
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/bower/lib/util/cmd.js:102:21) 
    at ChildProcess.emit (events.js:110:17) 
    at maybeClose (child_process.js:1008:16) 
    at Socket.<anonymous> (child_process.js:1176:11) 
    at Socket.emit (events.js:107:17) 
    at Pipe.close (net.js:476:12) 
From previous event: 
    at executeCmd (/usr/local/lib/node_modules/bower/lib/util/cmd.js:61:22) 
    at PThrottler._processEntry (/usr/local/lib/node_modules/bower/node_modules/p-throttler/index.js:89:25) 
    at PThrottler._processQueue (/usr/local/lib/node_modules/bower/node_modules/p-throttler/index.js:67:18) 
    at Array.forEach (native) 
    at PThrottler._onFulfill (/usr/local/lib/node_modules/bower/node_modules/p-throttler/index.js:121:17) 

Console trace: 
Trace 
    at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:82:17) 
    at Logger.<anonymous> (/usr/local/lib/node_modules/bower/bin/bower:110:22) 
    at Logger.emit (events.js:107:17) 
    at Logger.emit (/usr/local/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39) 
    at /usr/local/lib/node_modules/bower/lib/commands/index.js:40:20 
    at _rejected (/usr/local/lib/node_modules/bower/node_modules/q/q.js:797:24) 
    at /usr/local/lib/node_modules/bower/node_modules/q/q.js:823:30 
    at Promise.when (/usr/local/lib/node_modules/bower/node_modules/q/q.js:1035:31) 
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/node_modules/q/q.js:741:41) 
    at /usr/local/lib/node_modules/bower/node_modules/q/q.js:557:44 

System info: 
Bower version: 1.3.12 
Node version: 0.12.0 
OS: Darwin 14.3.0 x64 

Bower seeme直到今天工作良好。

+0

聽起來像是你的機器無法連接到github上:github.com [0:192.30.252.130]:錯誤號=操作超時 – Daniel

+0

NVM今天似乎有固定的本身。我認爲這與他們發佈.8預覽有關。 – endy

+0

這可能是因爲你沒有在Github上註冊的公鑰,所以'ssh://'對你來說是失敗的。改變一個'http/https'方案的依賴關係,或者將你的公鑰添加到Github,並確保它已經註冊到你的SSH代理。 – Doodloo

回答

1

嘗試運行此:

$ git config --global url."https://".insteadOf git://