前提・実現したいこと
Ruby on Railsを使ってブラウザ上に"Hello World!と表示したいです。
発生している問題・エラーメッセージ
We're sorry, but something went wrong.とブラウザ上に表示されてしまいます
エラーメッセージ Started GET "/hello/index" for ::1 at 2020-08-14 02:17:09 +0900 (0.7ms) SET NAMES utf8mb4, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483 Processing by HelloController#index as HTML Rendering hello/index.html.erb within layouts/application Rendered hello/index.html.erb within layouts/application (Duration: 5.9ms | Allocations: 306) [Webpacker] Compiling... [Webpacker] Compilation failed: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/webpack_runner.rb:23:in `exec': No such file or directory - C:\Users\ユーザー名\OneDrive\geektwitter2\node_modules.bin/webpack (Errno::ENOENT) from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/webpack_runner.rb:23:in `block in run' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/webpack_runner.rb:22:in `chdir' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/webpack_runner.rb:22:in `run' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/runner.rb:6:in `run' from ./bin/webpack:17:in `block in <main>' from ./bin/webpack:16:in `chdir' from ./bin/webpack:16:in `<main>' Completed 500 Internal Server Error in 3302ms (ActiveRecord: 0.0ms | Allocations: 13961) 使用言語```Ruby ソースコード
試したこと
yarnのアップグレードやwebpackerのインストールがされているか、MySQLが起動しているかの確認をしたのですがエラーが出てしまいます。解決方法を教えていただきたいです。
初心者で分からないことだらけなので教えていただけるとありがたいです。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー