2015-01-05 41 views
3

我想在Ubuntu 14.04上使用Bower安裝一堆依賴項。安裝掛起在一個半隨機點(jQuery,閉包庫或閉包編譯器之一)。版本如下,以及bower.json(匿名)。Bower在Ubuntu上安裝依賴項時掛起來

節點v0.10.35
NPM v1.4.28
鮑爾v1.3.12

bower.json

{ 
    "name": "redacted", 
    "version": "0.12.2", 
    "homepage": "redacted", 
    "description": "redacted", 
    "private": true, 
    "ignore": [ 
    "**/.*", 
    "node_modules", 
    "bower_components" 
    ], 
    "dependencies": { 
    "angular": "~1.3.0", 
    "angular-ui-router": "~0.2.10", 
    "angular-cookie": "~4.0.6", 
    "bootstrap": "~3.2.0", 
    "angular-animate": "~1.3.0", 
    "signalr": "*", 
    "angular-translate": "~2.4.0", 
    "fallback": "https://github.com/dolox/fallback.git#v2", 
    "angularjs-scroll-glue": "~0.0.1", 
    "angular-swfobject": "~1.0.2", 
    "swfobject": "*", 
    "angular-moment": "~0.8.3", 
    "momentjs": "~2.8.3", 
    "moment-timezone": "~0.2.2", 
    "angular-uuid4": "~0.2.0", 
    "font-awesome": "~4.2.0", 
    "angular-strap": "~2.1.4", 
    "angular-motion": "~0.3.4", 
    "angularjs-toaster": "~0.4.9", 
    "angular-hotkeys": "https://github.com/chieffancypants/angular-hotkeys.git#1.4.5" 
    }, 
    "devDependencies": { 
    "es5-shim": "~4.0.3", 
    "closure-compiler": "~0.2.6", 
    "closurelibrary": "*", 
    "closure-library-externs": "[email protected]:google/closure-compiler.git#v20140814", 
    "angular-mocks": "~1.3.0" 
    }, 
    "resolutions": { 
    "angular": "~1.3.0" 
    } 
} 

人點什麼毛病bower.json,或能知道涼亭之間的任何不兼容和Ubuntu與這些版本?

bower install在其掛起點輸出的樣本行(如上所述,它掛起的確切位置每次都會發生更改,但似乎大多數情況下會發生在resolved之間)。

bower fallback#v2 resolved https://github.com/dolox/fallback.git#0568407bc2

+0

在Ubuntu VM(Ubuntu 14.04.1 LTS)上覆制,主機運行OSX Mountain Lion(我無法複製該問題)。 –

+0

我剛剛嘗試過單獨安裝一切,並且似乎也很好地工作。 –

回答

0

如果沒有npm-debug.log我不能肯定診斷這一點,但它肯定看起來像一些是用來困擾着故宮的舊版本的安裝錯誤/競態條件 - 2.1前。

npm已經有了很多改進 - 特別是在安裝過程中衝突和競爭狀況 - 從1.4.28開始。你可以嘗試更新你的npm安裝嗎?

要更新NPM,運行npm -g install [email protected]

對於一些Linux發行版(於Debian/Ubuntu和RedHat/CentOS的),由分配所提供的穩定的版本後面可能滯後的最新節點的版本。 Here are instructions from NodeSource獲取最新節點。