2014-01-24 113 views
18

清潔windows 7專業安裝與節點和git。Bower安裝包EPERM重命名錯誤

簡單bower.json

{ 
    "name": "name123456", 
    "version": "1.0.0", 
    "dependencies": { 
    "closure-compiler": "http://dl.google.com/closure-compiler/compiler-latest.zip" 
    } 
} 

運行亭子安裝,並與權限錯誤死亡。

error

任何想法,爲什麼出現這種情況?謝謝你。

回答

28

這是一個在bower 1.2.7中的錯誤,與升級後的zip庫有關。一種解決方法是重新安裝涼亭,因爲它會強制升級爲ZIP庫:

bower cache clean 
npm uninstall -g bower 
npm install -g bower 

欲瞭解更多信息,請參閱https://github.com/bower/bower/issues/991

注意上面是不夠用的舊版本節點(我試過0.9.9)。使用最新版本的節點,它似乎再次正常工作。

4

如果接受的答案對您無效,您可以嘗試下面的行。

npm uninstall -g bower && npm update decompress-zip && npm install -g bower 

Source - Github