Part of the traceback on terminal says
There was an error while trying to load the gem 'jbuilder'. (Bundler::GemRequireError)
Please help
Gemfile:
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.5.1'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.11'
...
gem 'jbuilder', '~> 2.5'
...
也许您可以尝试“捆绑安装”?
我不确定,但尝试检查config / database.yml,然后尝试:捆绑安装-如果不配置开发,则不进行开发测试:和测试:或仅对它们进行注释。
the issue was the various ruby versions I had installed on my machine. The solution was, I removed them and reinstalled ruby using rvm.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.