rails generate model User first_name:string last_name:string email:string Traceback (most recent call last): 5: from bin/rails:2:in `<main>' 4: from bin/rails:2:in `load' 3: from /Users/user/AMewZ/bin/spring:3:in `<top (required)>' 2: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_gem.rb:65:in `gem' 1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:323:in `to_spec' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'bundler' (2.1.4) required by your /Users/user/AMewZ/Gemfile.lock. (Gem::MissingSpecVersionError) 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.4` Checked in 'GEM_PATH=/Users/user/.gem/ruby/2.6.0:/Library/Ruby/Gems/2.6.0:/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0', execute `gem env` for more information
このように rails generate model User first_name:string last_name:string email:string
を実行しようとするとエラーになります。
bundle update --bundler
gem install bundler:2.1.4
を実行しましたが、エラーが解消されません。
どのように対処したらいいでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。