How do you uninstall all your bower packages?

前端 未结 8 1492
礼貌的吻别
礼貌的吻别 2021-01-30 06:09

Sometimes it\'s useful to rebuild an entire site and force bower to reinstall new versions of all the packages in bower.json.

However, there doesn\'t seem to be any way

8条回答
  •  后悔当初
    2021-01-30 06:55

    Actually I do something a little bit tricky but it works for me:

    1. for package in $(ls your_bower_components_folder); do bower uninstall "$package"; done;
    2. bower install

提交回复
热议问题