Error installing Ruby on Rails

0

This is the 5 time I try to install Ruby on Rails, but it always gives me errors like Gem required, or when installing them when they are not telling me that the gems are corrupted. It also tells me to run the ridk install command but when a download starts it tells me Download ... FAILED and the console fills up with that. The most common mistake in all the installations I made is rails server

C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:85: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:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in 'autodetect'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/execjs-2.7.0/lib/execjs.rb:5:in '<module:ExecJS>'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/execjs-2.7.0/lib/execjs.rb:4:in '<top (required)>'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/uglifier-3.2.0/lib/uglifier.rb:5:in 'require'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/uglifier-3.2.0/lib/uglifier.rb:5:in '<top (required)>'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:82:in 'require'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:82:in 'block (2 levels) in require'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:77:in 'each'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:77:in 'block in require'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:66:in 'each'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:66:in 'require'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler.rb:108:in 'require'
c:/verst windows/blog/config/application.rb:7:in '<top (required)>'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:88:in 'require'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:88:in 'block in server'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:85:in 'tap'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:85:in 'server'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:49:in 'run_command!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands.rb:18:in '<top (required)>'
bin/rails:4:in 'require'
bin/rails:4:in '<main>'
Bundler Error Backtrace:
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:81:in 'block (2 levels) in require'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:77:in 'each'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:77:in 'block in require'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:66:in 'each'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler/runtime.rb:66:in 'require'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.15.1/lib/bundler.rb:108:in 'require'
        from c:/verst windows/blog/config/application.rb:7:in '<top (required)>'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:88:in 'require'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:88:in 'block in server'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:85:in 'tap'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:85:in 'server'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:49:in 'run_command!'
        from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.6/lib/rails/commands.rb:18:in '<top (required)>'
        from bin/rails:4:in 'require'
        from bin/rails:4:in '<main>'
    
asked by Esteban Fernández 11.09.2017 в 18:53
source

1 answer

0

The error that shows tells you, in the second line, that you do not have runtime installed for JavaScript :

  

Gem Load Error is: Could not find a JavaScript runtime. See    link for a list of available runtimes.

To eliminate the error you must install a runtime on your machine, for example a very common one is Node.js ; however, you can choose any other of those indicated in the link suggested by the error .

    
answered by 12.09.2017 в 00:11