Rails 5.2.0 with Ruby 2.5.1 console - `warning:` `already` initialized constant FileUtils::VERSION

后端 未结 2 1013
后悔当初
后悔当初 2021-01-30 20:18

I\'m currently experiencing an issue with my new rails application, more specifically:

  • Rails 5.2.0
  • Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwi
相关标签:
2条回答
  • 2021-01-30 20:41

    It works for me:

    bundle clean --force
    

    bundle clean(1)
    Clean up unused gems in your Bundler directory

    0 讨论(0)
  • 2021-01-30 20:50

    I had the same issue. The one step missing from your post is to uninstall the fileutils gem first, then gem update with the default option.

    gem uninstall fileutils
    Successfully uninstalled fileutils-1.1.0
    gem update --default
    Updating installed gems
    Updating fileutils
    Fetching: fileutils-1.1.0.gem (100%)
    Successfully installed fileutils-1.1.0
    

    That got rid of the verbose fileutils messages for me.

    Update: Instead of gem update --default, do gem update fileutils --default. This process should work for other gems too. Thanks to Matijs van Zuijlen for this.

    0 讨论(0)
提交回复
热议问题