How to reinstall a gem using bundler

前端 未结 8 1707

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

    If you're trying to reinstall rake, gem pristine rake will fail with Skipped rake-10.X.X, it is a default gem and bundle won't install it either, because it can't uninstall it.

    If you're using rvm, it seems the easiest was is simply to do a rvm reinstall 2.x.x. At least for me, rvm repair all also didn't help.

    The same probably goes for all other default gems. I'll just list them here so that the desperate googlers find some help:

    • bigdecimal
    • drip
    • io-console
    • json
    • minitest
    • psych
    • rake
    • rbtree
    • rdoc
    • test-unit

提交回复
热议问题