bower automatically update bower.json

点点圈 提交于 2019-12-09 04:00:42

问题


I run the following commands using bower 1.0.0:

mkdir testdir;cd testdir
bower init #accept defaults
bower install jquery -s  #the -s is supposed to cause update of bower.json
less bower.json

In bower.json I expect to see dependencies listed, but there are none. What is going on?

NOTE: bower install jquery --save does work

NOTE: The option I am referring to was documented through bower help install

**-S**, --save              Save installed packages into the project's bower.json dependencies

回答1:


from bower help, save option has a capital S

-S, --save  Save installed packages into the project's bower.json dependencies


来源:https://stackoverflow.com/questions/17865487/bower-automatically-update-bower-json

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!