How to update bower.json with installed packages from bower_components

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:49:16

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!