How to update bower.json with installed packages?

后端 未结 6 1103
遇见更好的自我
遇见更好的自我 2021-01-29 22:28

In my project I\'ve installed bower components without save option. Now, I would like update to bower.json?

How can I update b

6条回答
  •  遇见更好的自我
    2021-01-29 23:30

    Just list your dependencies:

    bower list
    

    Then you should run all install command with param '--save' like this:

    bower install bootstrap --save
    

    It's a hard work, but if you have a thousand dependencies, could you create a script to automatize the task.

提交回复
热议问题