我使用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
在bower.json中,我希望看到列出的依赖项,但没有。发生了什么事?
注意:bower install jquery --save
确实有效
注意:
我所指的选项是通过bower help install
**-S**, --save Save installed packages into the project's bower.json dependencies
答案 0 :(得分:372)
-S, --save Save installed packages into the project's bower.json dependencies