我已经在项目根目录中创建了一个bower.json文件,但是当我运行以下命令时:
$ 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
任何帮助都将不胜感激。
.bowerrc
文件是 bower 的配置文件。例如,您可以指定 bower_components 文件夹的路径。也许这会有所帮助。 - YvesHendseth