How can I reset the bundler install path to default?
I had initially set it with bundle install --path .gems
but now I'd like to reset it to the default system location.
gem env – try to search in provided list under GEM PATHS, in specifications/default. remove there bundler-VERSION. gemspec. install bundler, if you don't have specific: gem install bundler:VERSION --default.
Description. This command will remove all unused gems in your bundler directory. This is useful when you have made many changes to your gem dependencies.
The configuration will be stored in ~/. bundle/config . If name already is set, name will be overridden and user will be warned. Executing bundle config unset <name> will delete the configuration in both local and global sources.
bundle install --system
Bundler docs
Edit - this command has now been updated!
See @Najmul's answer for the latest version
For anyone visiting this in 2021, the above mentioned system
flag is now deprecated. You have to set the bundle config by running: `
bundle config set --local system 'true'
and then you run:
bundle install
as usual.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With