こんにちは!
s.kです。
表題の件に関して質問です。
railsをインストール後、コマンドプロンプトでRailsアプリケーションの初期画面をしたいのですが、表示されません。なぜか教えていただきたいです。
私がコマンドプロンプトに入力したのは、
ruby bin/rails sです。
出力されるのは、
=> Booting WEBrick
・・・・
・・・
・・
・
のはずなのですが・・・・。
実際に出力されたのは以下のものです。
原因がわからないのでご質問させていただきました。
ぜひ、教えていただきたいです。
よろしくお願いします!
C:\rails\asagao>ruby bin/rails s
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:89:in rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError) Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. Backtrace for gem load error is: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in
autodetect'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/execjs-2.7.0/lib/execjs.rb:5:in <module:ExecJS>' C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/execjs-2.7.0/lib/execjs.rb:4:in
<top (required)>'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/uglifier-3.0.0/lib/uglifier.rb:5:in require' C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/uglifier-3.0.0/lib/uglifier.rb:5:in
<top (required)>'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:86:in require' C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:86:in
block (2 levels) in require'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:81:in each' C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:81:in
block in require'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:70:in each' C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:70:in
require'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler.rb:102:in require' C:/rails/asagao/config/application.rb:7:in
<top (required)>'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in require' C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in
block in server'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in tap' C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in
server'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in run_command!' C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in
<top (required)>'
bin/rails:4:in require' bin/rails:4:in
<main>'
Bundler Error Backtrace:
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:85:in block (2 levels) in require' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:81:in
each'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:81:in block in require' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:70:in
each'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler/runtime.rb:70:in require' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.12.4/lib/bundler.rb:102:in
require'
from C:/rails/asagao/config/application.rb:7:in <top (required)>' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in
require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in block in server' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in
tap'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in server' from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in
run_command!'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:4:in
require'
from bin/rails:4:in `<main>'
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/05/25 12:22