How to reinstall a gem using bundler

前端 未结 8 1694

I did a bundle show and get the complete path to a gem directory.

Unfortunately, I removed the directory using rm -r gem_path. Then my rails ap

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 20:19

    You can always use:

    gem pristine acts-as-taggable-on

    pristine - Restores installed gems to pristine condition from files located in the gem cache

    If you just want to restore the gem for the current project you should run:

    bundle exec gem pristine acts-as-taggable-on

提交回复
热议问题