How to reinstall a gem using bundler

前端 未结 8 1847

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:23

    bundle exec gem uninstall - uninstalls gem from the bundle (the /vendor/bundle/ruby/2.3.0/gems/ path). This is equivalent to the answer @ioquatix gave, but is the slightly more convenient solution that he was looking for.

    gem uninstall - uninstalls gem only from the global gemset in the system

提交回复
热议问题