Why Bundle Install is installing gems in vendor/bundle?

后端 未结 6 1858
我寻月下人不归
我寻月下人不归 2020-12-24 04:46

Whenever I do bundle install all of the gems get installed at

app_dir/vendor/bundle

path and consumes loads of disk space. I a

6条回答
  •  被撕碎了的回忆
    2020-12-24 05:34

    In your project folder you will have .bundle directory that holds configuration for bundler. try deleting that folder. it should reset the install path for your gems back to system-wide settings.

    In the case you just want to edit the install path, opening .bundle/config with your favorite editor should show you the path to vendor/bundle. Removing that line will restore it to defaults without removing other configs you might have.

    Also, another less frequent scenario is your system-wide settings being messed up. According to @NaoiseGolden:

    I had to delete .bundle from my Home folder (rm -rf ~/.bundle). You can check out your configuration running bundle env

提交回复
热议问题