前提・実現したいこと
M1 macで rails sとrails (railsバージョン) (app名) -d mysql を実行したい
発生している問題・エラーメッセージ
% rails 6.1.4 new bpp -d mysql
create
〜省略しました〜
Using sass-rails 6.0.0
Bundle complete! 17 Gemfile dependencies, 56 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Use bundle info [gemname]
to see where a bundled gem is installed.
run bundle binstubs bundler
rails webpacker:install
rails aborted!
LoadError: cannot load such file -- listen
/Users/machu/app/bpp/config/environments/development.rb:72:in block in <main>' /Users/machu/app/bpp/config/environments/development.rb:3:in
<main>'
/Users/machu/app/bpp/config/environment.rb:5:in `<main>'
Tasks: TOP => app:template => environment
(See full trace by running task with --trace)
エラーメッセージ rails aborted! LoadError: cannot load such file -- listen /Users/machu/app/bpp/config/environments/development.rb:72:in `block in <main>' /Users/machu/app/bpp/config/environments/development.rb:3:in `<main>' /Users/machu/app/bpp/config/environment.rb:5:in `<main>' Tasks: TOP => app:template => environment (See full trace by running task with --trace) ### 該当のソースコード development.rb require "active_support/core_ext/integer/time" Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded any time # it changes. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false # Do not eager load code on boot. config.eager_load = false # Show full error reports. config.consider_all_requests_local = true # Enable/disable caching. By default caching is disabled. # Run rails dev:cache to toggle caching. if Rails.root.join('tmp', 'caching-dev.txt').exist? config.action_controller.perform_caching = true config.action_controller.enable_fragment_cache_logging = true config.cache_store = :memory_store config.public_file_server.headers = { 'Cache-Control' => "public, max-age=#{2.days.to_i}" } else config.action_controller.perform_caching = false config.cache_store = :null_store end # Store uploaded files on the local file system (see config/storage.yml for options). config.active_storage.service = :local # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false config.action_mailer.perform_caching = false # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log # Raise exceptions for disallowed deprecations. config.active_support.disallowed_deprecation = :raise # Tell Active Support which deprecation messages to disallow. config.active_support.disallowed_deprecation_warnings = [] # Raise an error on page load if there are pending migrations. config.active_record.migration_error = :page_load # Highlight code that triggered database queries in logs. config.active_record.verbose_query_logs = true # Debug mode disables concatenation and preprocessing of assets. # This option may cause significant delays in view rendering with a large # number of complex assets. config.assets.debug = true # Suppress logger output for asset requests. config.assets.quiet = true # Raises error for missing translations. # config.i18n.raise_on_missing_translations = true # Annotate rendered view with file names. # config.action_view.annotate_rendered_view_with_filenames = true # Use an evented file watcher to asynchronously detect changes in source code, # routes, locales, etc. This feature depends on the listen gem. config.file_watcher = ActiveSupport::EventedFileUpdateChecker # Uncomment if you wish to allow Action Cable access from any origin. # config.action_cable.disable_request_forgery_protection = true end enviroment.rb # Load the Rails application. require_relative "application" # Initialize the Rails application. Rails.application.initialize!
試したこと
初心者なので色々ネット検索したり噛み砕いたりして検索しましたがよくわかりませんでした。
補足情報(FW/ツールのバージョンなど)
brew -v
Homebrew 3.2.5
Homebrew/homebrew-core (git revision 7d0ba234a1; last commit 2021-07-28)
rbenv -v
rbenv 1.1.2
ruby -v
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]
rails -v
Rails 6.1.4
yarn -v
1.22.10
matsuimasateru@machu ~ % node -v
v16.5.0
このエラーでかなり困ってます
前に進めず何をしたらいいのかわからないのでご教授お願いします
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2021/08/05 13:00
2021/08/05 23:33
退会済みユーザー
2021/08/06 15:26
2021/08/07 14:55
退会済みユーザー
2021/08/09 13:06
2021/08/12 07:07
退会済みユーザー
2021/08/12 11:23