问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/29915701/how-to-update-bower-json-with-installed-packages-from-bower-components