我在我的項目的根目錄創建一個文件bower.json但是當我運行:鮑爾問題:bower_components沒有創建
$ bower install
我得到以下輸出:
bower not-cached https://github.com/mirceasinteanu/nanoScrollerJS.git#master
bower resolve https://github.com/mirceasinteanu/nanoScrollerJS.git#master
bower not-cached http://jamesallardice.github.io/Placeholders.js#*
bower resolve http://jamesallardice.github.io/Placeholders.js#*
bower download http://jamesallardice.github.io/Placeholders.js
bower cached http://github.com/davatron5000/FitVids.js.git#1.1.0
bower validate 1.1.0 against http://github.com/davatron5000/FitVids.js.git#*
bower cached git://github.com/jquery/jquery.git#1.10.2
bower validate 1.10.2 against git://github.com/jquery/jquery.git#~1.10.0
bower cached git://github.com/gfranko/jquery.selectBoxIt.js.git#3.8.1
bower validate 3.8.1 against git://github.com/gfranko/jquery.selectBoxIt.js.git#*
bower cached git://github.com/chrisabrams/commonjs.git#0.2.0
bower validate 0.2.0 against git://github.com/chrisabrams/commonjs.git#0.2.0
bower cached git://github.com/components/jqueryui.git#1.11.2
bower validate 1.11.2 against git://github.com/components/jqueryui.git#*
bower cached git://github.com/jonom/jquery-focuspoint.git#1.1.1
bower validate 1.1.1 against git://github.com/jonom/jquery-focuspoint.git#*
bower checkout nanoscroller#master
bower invalid-meta nanoscroller is missing "ignore" entry in bower.json
bower resolved https://github.com/mirceasinteanu/nanoScrollerJS.git#5e348f0bb9
bower EHTTP Status code of 404
沒有bower_components文件夾被創建,所以當引用bower包時我會遇到錯誤。
我使用:
OSX 10.9.5
node v0.12.0
npm v2.5.1
bower v1.3.12
git v1.9.2
我曾嘗試運行:
$ npm cache clean
任何幫助將非常感激。
爲什麼會有幫助? – Oleander 2015-04-20 18:08:55
@Oleander'.bowerrc'文件是bower的配置文件。例如,您可以指定您的bower_components文件夾的路徑。馬比,這將有助於 – YvesHendseth 2015-04-21 06:34:14