How can I update bower.json with installed packages?

bower, javascript, jquery, package

Solution

Just list your dependencies:

bower list

Then you should run all install commands with parameter '--save' like this:

bower install bootstrap --save

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

Problem

In my project I've installed Bower components without the save option. Now, I would like update to `bower.json`. How can I update bower.json with installed packages?

Original source

Related problems