#環境
ruby 2.6.4
rails 5.2.2
#1. 問題
bundle installしたら
terminal
1An error occurred while installing mini_racer (0.2.6), and Bundler 2cannot continue. 3Make sure that `gem install mini_racer -v '0.2.6' --source 4'https://rubygems.org/'` succeeds before bundling.
と表示される
#2.試したこと
terminal
1$ gem install mini_racer -v '0.2.6' 2Building native extensions. This could take a while... 3Successfully installed mini_racer-0.2.6 4Parsing documentation for mini_racer-0.2.6 5Done installing documentation for mini_racer after 0 seconds 61 gem installed 7$ bundle install
再びbundle installすると上と同じ表示になる
#3.該当しそうなファイル
Gemfile
1source 'https://rubygems.org' 2 3# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 4gem 'rails', '5.2.2' 5# Use mysql as the database for Active Record 6gem 'mysql2' 7# Use Puma as the app server 8gem 'puma' 9# Use SCSS for stylesheets 10gem 'sass-rails' 11# Use Uglifier as compressor for JavaScript assets 12gem 'uglifier' 13# Use CoffeeScript for .coffee assets and views 14gem 'coffee-rails' 15# See https://github.com/rails/execjs#readme for more supported runtimes 16# gem 'therubyracer', platforms: :ruby 17gem 'mini_racer' 18 19# Use jquery as the JavaScript library 20gem 'jquery-rails' 21# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 22gem 'turbolinks' 23# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 24gem 'jbuilder' 25# Use Redis adapter to run Action Cable in production 26# gem 'redis', '~> 3.0' 27# Use ActiveModel has_secure_password 28gem 'bcrypt' 29 30# Use Capistrano for deployment 31# gem 'capistrano-rails', group: :development 32 33gem 'bootstrap' 34gem 'kaminari' 35gem 'rails-i18n' 36#gem 'rmagick' 37gem 'libv8' 38#gem 'libv8', '~> 5.9', '>= 5.9.211.38.1' 39gem "webpacker" 40gem 'bundle_outdated_formatter' 41#image upload 42gem "carrierwave" 43gem "piet" 44gem "mini_magick" 45 46group :development, :test do 47 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 48 gem 'byebug', platform: :mri 49 gem 'rails-flog', require: 'flog' 50 gem 'rspec-rails' 51 gem 'factory_bot_rails' 52 gem 'rails-controller-testing' 53end 54 55group :development do 56 # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. 57 gem 'web-console' 58 gem 'listen' 59 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 60 gem 'spring' 61 gem 'spring-watcher-listen' 62 gem 'pry-byebug' 63 gem 'annotate' 64 gem 'rubocop', require: false 65 gem 'rubocop-rails' 66end 67 68# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 69gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 70
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。