首页 文章

凉亭自动更新bower.json

提问于
浏览
234

我使用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

1 回答

  • 369

    从凉亭帮助,保存选项有一个资本S.

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

相关问题