How do you uninstall all your bower packages?

前端 未结 8 1490
礼貌的吻别
礼貌的吻别 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 07:05

    how about

    1. edit the bower.json
    2. 'rm -Rf bower_components/*'
    3. bower install

    I was trying to upgrade to polymer 0.2.4 from 0.2.3. I can't seem to find a quick way to uninstall a set of dependencies. So I just manually removed those polymer* dir under bower_components. But for some reason bower kept remembering I had 0.2.3 installed event with bower.json modified. A 'rm -Rf bower_component/*' seems to do the tricks.

提交回复
热议问题