zoukankan      html  css  js  c++  java
  • rails 5.2 启动警告 warning: previous definition of VERSION was here和bootsnap

    bootsnap依赖问题

    1 You should add gem 'bootsnap' to your gemfile to install it or remove the line require 'bootsnap/setup' in config/boot.rb

    or

    1 using rails new myapp --skip-bootsnap
    1 If the app doesn’t contain the bootsnap gem already then we will need to add it manually since rails app:update task adds the bootsnap/setup line to boot.rb regardless of its presence in the Gemfile.

    or

    1 https://blog.bigbinary.com/2018/01/01/rails-5-2-adds-bootsnap-to-the-app-to-speed-up-boot-time.html

    warning: previous definition of VERSION was here

    1 https://github.com/ruby/fileutils/issues/22
     1 Ran into this, and the solution here works: https://stackoverflow.com/questions/51334732/rails-5-2-0-with-ruby-2-5-1-console-warning-already-initialized-constant
     2 
     3 I understand 1.0.2 stays installed as the default, 1.1.0 being installed too. Hence the issue.
     4 
     5 When installed automatically, I get the warnings. Following command shows (new rails app, 2.5.1) :
     6 
     7 gem list | grep fileutils
     8 fileutils (1.1.0, default: 1.0.2)
     9 
    10 Then doing:
    11 
    12 gem uninstall fileutils
    13 gem update fileutils --default
    14 
    15 makes the warnings disappear. And btw, it shows:
    16 
    17 gem list | grep fileutils
    18 fileutils (default: 1.1.0, default: 1.0.2)
    19 
    20 Hope it will help fixing this annoyance. Sorry I cannot be of more help, not really a wizard with those versioning topics!
  • 相关阅读:
    spring-mvc访问本地html文件
    好文收集
    jsp参数乱码解决
    ext window嵌jsp页面自适应
    正则学习(转)
    Error occurred during initialization of VM Incompatible initial and maximum heap sizes specified
    产品测试流程
    创建maven工程时报错,解决方案
    接口测试中如何利用cookies保持会话
    http协议基础
  • 原文地址:https://www.cnblogs.com/or2-/p/9929299.html
Copyright © 2011-2022 走看看