Home>
I want to resolve the bundler 2.1.3 error when creating an app in Ruby 2.7. (Rails6)
Procedures performedbrew update
brew upgrade ruby-build
rbenv install 2.7.0
rbenv global 2.7.0
gem update bundler
bundler -v->Bundler version 2.1.3
⇒App creation
Error excerpt
Could not find'bundler' (2.1.3) required by your /Users/xxx/RubymineProjects/untitled2/Gemfile.lock. (Gem :: GemNotFoundException)
Error part
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.3). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler: 2.1.3` ..
Traceback (most recent call last):
15: from bin/rails: 8: in `<main>'
14: from bin/rails: 8: in `require_relative'
13: from /Users/xxx/RubymineProjects/untitled2/config/boot.rb:3:in `<top (required)>'
12: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92: in `require'
11: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92: in `require'
10: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/bundler/setup.rb:10: in `<top (required)>'
9: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/bundler/ui/shell.rb:88:in `silence'
8: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/bundler/ui/shell.rb:136:in `with_level'
7: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/bundler/setup.rb:10: in `block in<top (required)>'
6: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/bundler.rb:149:in `setup'
5: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/bundler/runtime.rb:22: in `setup'
4: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/bundler/shared_helpers.rb:76: in `set_bundle_environment'
3: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/bundler/shared_helpers.rb:297: in `set_bundle_variables'
2: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/bundler/rubygems_integration.rb:223:in `bin_path'
1: from /Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/rubygems.rb:252:in `bin_path'
/Users/xxx/.rbenv/versions/2.7.0/lib/ruby/2.7.0/rubygems.rb: 275: in `find_spec_for_exe': Could not find'bundler' (2.1.3) required by your/Users/xxx/RubymineProjects/untitled2/Gemfile.lock. (Gem :: GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler: 2.1.3`
Gemfile.lock (BUNDLED WITH 2.1.3)
GEM
remote: https://rubygems.org/
specs:
actioncable (6.0.2.1)
actionpack (= 6.0.2.1)
nio4r (~>2.0)
websocket-driver (>= 0.6.1)
actionmailbox (6.0.2.1)
actionpack (= 6.0.2.1)
activejob (= 6.0.2.1)
activerecord (= 6.0.2.1)
activestorage (= 6.0.2.1)
activesupport (= 6.0.2.1)
mail (>= 2.7.1)
actionmailer (6.0.2.1)
actionpack (= 6.0.2.1)
actionview (= 6.0.2.1)
activejob (= 6.0.2.1)
mail (~>2.5,>= 2.5.4)
rails-dom-testing (~>2.0)
actionpack (6.0.2.1)
actionview (= 6.0.2.1)
activesupport (= 6.0.2.1)
rack (~>2.0,>= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (~>2.0)
rails-html-sanitizer (~>1.0,>= 1.2.0)
actiontext (6.0.2.1)
actionpack (= 6.0.2.1)
activerecord (= 6.0.2.1)
activestorage (= 6.0.2.1)
activesupport (= 6.0.2.1)
nokogiri (>= 1.8.5)
actionview (6.0.2.1)
activesupport (= 6.0.2.1)
builder (~>3.1)
erubi (~>1.4)
rails-dom-testing (~>2.0)
rails-html-sanitizer (~>1.1,>= 1.2.0)
activejob (6.0.2.1)
activesupport (= 6.0.2.1)
globalid (>= 0.3.6)
activemodel (6.0.2.1)
activesupport (= 6.0.2.1)
activerecord (6.0.2.1)
activemodel (= 6.0.2.1)
activesupport (= 6.0.2.1)
activestorage (6.0.2.1)
actionpack (= 6.0.2.1)
activejob (= 6.0.2.1)
activerecord (= 6.0.2.1)marcel (~>0.3.1)
activesupport (6.0.2.1)
concurrent-ruby (~>1.0,>= 1.0.2)
i18n (>= 0.7,<2)
minitest (~>5.1)
tzinfo (~>1.1)
zeitwerk (~>2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2,<5.0)
bindex (0.8.1)
bootsnap (1.4.5)
msgpack (~>1.0)
builder (3.2.4)
byebug (11.0.1)
capybara (3.30.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (~>1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (~>1.5)
xpath (~>3.2)
childprocess (3.0.0)
concurrent-ruby (1.1.5)
crass (1.0.5)
erubi (1.9.0)
ffi (1.11.3)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.7.0)
concurrent-ruby (~>1.0)
jbuilder (2.9.1)
activesupport (>= 4.2.0)
listen (3.1.5)
rb-fsevent (~>0.9,>= 0.9.4)
rb-inotify (~>0.9,>= 0.9.7)
ruby_dep (~>1.2)
loofah (2.4.0)
crass (~>1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (0.3.3)
mimemagic (~>0.3.2)
method_source (0.9.2)
mimemagic (0.3.3)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.13.0)
msgpack (1.3.1)
nio4r (2.5.2)
nokogiri (1.10.7)
mini_portile2 (~>2.4.0)
public_suffix (4.0.2)
puma (4.3.1)
nio4r (~>2.0)
rack (2.0.8)
rack-proxy (0.6.5)
rack
rack-test (1.1.0)
rack (>= 1.0,<3)
rails (6.0.2.1)
actioncable (= 6.0.2.1)
actionmailbox (= 6.0.2.1)
actionmailer (= 6.0.2.1)
actionpack (= 6.0.2.1)
actiontext (= 6.0.2.1)
actionview (= 6.0.2.1)
activejob (= 6.0.2.1)
activemodel (= 6.0.2.1)
activerecord (= 6.0.2.1)
activestorage (= 6.0.2.1)
activesupport (= 6.0.2.1)
bundler (>= 1.3.0)
railties (= 6.0.2.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
loofah (~>2.3)
railties (6.0.2.1)
actionpack (= 6.0.2.1)
activesupport (= 6.0.2.1)
method_source
rake (>= 0.8.7)
thor (>= 0.20.3,<2.0)
rake (13.0.1)rb-fsevent (0.10.3)
rb-inotify (0.10.1)
ffi (~>1.0)
regexp_parser (1.6.0)
ruby_dep (1.5.0)
rubyzip (2.0.0)
sass-rails (6.0.0)
sassc-rails (~>2.1,>= 2.1.1)
sassc (2.2.1)
ffi (~>1.9)
sassc-rails (2.1.2)
railties (>= 4.0.0)
sassc (>= 2.0)
sprockets (>3.0)
sprockets-rails
tilt
selenium-webdriver (3.142.7)
childprocess (>= 0.5,<4.0)
rubyzip (>= 1.2.2)
spring (2.1.0)
spring-watcher-listen (2.0.1)
listen (>= 2.7,<4.0)
spring (>= 1.2,<3.0)
sprockets (4.0.0)
concurrent-ruby (~>1.0)
rack (>1,<3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
thor (1.0.1)
thread_safe (0.3.6)
tilt (2.0.10)
turbolinks (5.2.1)
turbolinks-source (~>5.2)
turbolinks-source (5.2.0)
tzinfo (1.2.6)
thread_safe (~>0.1)
web-console (4.0.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
webdrivers (4.2.0)
nokogiri (~>1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (>= 3.0,<4.0)
webpacker (4.2.2)
activesupport (>= 4.2)
rack-proxy (>= 0.6.1)
railties (>= 4.2)
websocket-driver (0.7.1)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.4)
xpath (3.2.0)
nokogiri (~>1.8)
zeitwerk (2.2.2)
PLATFORMS
ruby
DEPENDENCIES
bootsnap (>= 1.4.2)
byebug
capybara (>= 2.15)
jbuilder (~>2.7)
listen (>= 3.0.5,<3.2)
puma (~>4.1)
rails (~>6.0.2,>= 6.0.2.1)
sass-rails (>= 6)
selenium-webdriver
spring
spring-watcher-listen (~>2.0.0)
sqlite3 (~>1.4)
turbolinks (~>5)
tzinfo-data
web-console (>= 3.3.0)
webdrivers
webpacker (~>4.0)
RUBY VERSION
ruby 2.7.0p0
BUNDLED WITH
2.1.3
What I tried
-Delete Gemfile.lock and try againbundle install
⇒bundle complete
rear,bin/rails passwordless: install: migrations
⇒ Same error
・ Create an app only with Terminal without using Rubymine ⇒ Same error
・bundle init
Create an app with just Terminal ⇒ Same error
-
Answer # 1
Related articles
- ruby bundler doesn't work no error message is displayed
- ruby - i want to resolve an error when installing gem byebug
- ruby - i got a routing error when i sent a comment
- ruby - i don't know the cause of the validation error in factorybot
- ruby on rails - i don't understand the content of the error
- ruby on rails - i get an error with rails db: create
- ruby on rails - i get an error in a program that changes over time
- ruby on rails - nomethoderror in itemscontroller # new error
- ruby on rails - i get an error without being created
- ruby - no error message is displayed during new registration
- ruby on rails 6 - when i press new user registration, i get an error of no route matches [get] "/ users"
- ruby - i entered secret_key_base, but http error 500 cannot be resolved
- ruby on rails - error when implementing rails6 follow function
- ruby - i get an error with a single test code for a model
- ruby error code
- ruby on rails uninitialized constant error
- ruby - after new registration with devise, an error is displayed
- ruby - please tell me the cause of the error when specifying model: of form_with
- ruby - validation error when saving intermediate table
Related questions
- ruby - passing variables using render partial
- ruby - deployment error on heroku
- ruby - output the total integer value held by each user
- ruby - i want to use the search method for active hash data
- ruby - destroy action does not respond
- ruby - how do you see the rails controller relative path? (carrierwave directory deleted)
- ruby - when deploying on capistrano, i get the error "access denied for user'ec2-user' @'localhost' (using password: no)&qu
- javascript - run multiple times with js + each do
- how to reflect the layout downloaded from the external site in ruby on rails?
- ruby - how nice! function routes do not pass well (relation) [rails]
I made it to ver 2.6.x.