Search code examples
rubygemsbundler

Delete the 'Cleaning all the gems on your system is dangerous!' message on bundler install


I would like to know if it's possible to remove the following message on bundler install commands:

Cleaning all the gems on your system is dangerous! If you're sure you want to remove every system gem not in this bundle, run bundle clean --force.

From what I understood, this message is supposed to be displayed bundler clean, so I don't understand why it would be here. Could it be that it is due to that time I used bundler install --clean?

Thank you in advance. Have a nice day.

P.S.: Please warn me if the question should be on another OverFlow website, or with other tags.


Solution

  • The solution for me was to delete the .bundle/config which contained BUNDLE_CLEAN: "true". The reference of the original comment in GitHub can be found here