Shlomo
Shlomo

Reputation: 3990

How to update bower.json with installed packages from bower_components

How to update bower.json with installed packages from bower_components?

bower init does not add all my installed packages into bower.json, some are obviously missing

bower list fails connecting to github on one package.

So whats the correct way of doing this?

Upvotes: 3

Views: 2457

Answers (1)

nitin
nitin

Reputation: 3787

Install all your new dependencies with --save tag. This will add them to your bower.json file automatically.

# e.g. bower install angular --save
bower install <package> --save

If you missed adding save tag you can just run bower init and it will generate a new bower.json using dependencies from existing bower_components folder.

bower init

Upvotes: 1

Related Questions