Ruby on Rails:could not find a JavaScript runtime

Source: Internet
Author: User
Tags ruby on rails

[Email protected] first]# rails s

/usr/local/rvm/gems/ruby-2.0.0-p481/gems/execjs-2.2.1/lib/execjs/runtimes.rb:51:in ' AutoDetect ': Could not find a JavaScript Runtime. See Https://github.com/sstephenson/execjs for a list of available runtimes. (execjs::runtimeunavailable)
From/usr/local/rvm/gems/ruby-2.0.0-p481/gems/execjs-2.2.1/lib/execjs.rb:5:in ' <module:ExecJS> '
From/usr/local/rvm/gems/ruby-2.0.0-p481/gems/execjs-2.2.1/lib/execjs.rb:4:in ' <top (required) > '
From/usr/local/rvm/gems/ruby-2.0.0-p481/gems/uglifier-1.3.0/lib/uglifier.rb:3:in ' require '
From/usr/local/rvm/gems/ruby-2.0.0-p481/gems/uglifier-1.3.0/lib/uglifier.rb:3:in ' <top (required) > '
From/usr/local/rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in ' require '
From/usr/local/rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in ' block (2 levels) in Require
From/usr/local/rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in ' Each '
From/usr/local/rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in ' block in require '
From/usr/local/rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in ' Each '
From/usr/local/rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in ' require '
From/usr/local/rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler.rb:132:in ' require '
From/root/rails/first/config/application.rb:7:in ' <top (required) > '
From/usr/local/rvm/gems/ruby-2.0.0-p481/gems/railties-4.0.2/lib/rails/commands.rb:74:in ' require '
From/usr/local/rvm/gems/ruby-2.0.0-p481/gems/railties-4.0.2/lib/rails/commands.rb:74:in ' Block in <top ( Required) > '
From/usr/local/rvm/gems/ruby-2.0.0-p481/gems/railties-4.0.2/lib/rails/commands.rb:71:in ' Tap '
From/usr/local/rvm/gems/ruby-2.0.0-p481/gems/railties-4.0.2/lib/rails/commands.rb:71:in ' <top (required) > '
From Bin/rails:4:in ' require '
From Bin/rails:4:in ' <main> '

[email protected] first]# Yum install Nodejs

Loaded Plugins:fastestmirror, Presto
Loading mirror speeds from cached hostfile
* base:mirror.bit.edu.cn
* epel:mirrors.yun-idc.com
* extras:mirrors.yun-idc.com
* updates:mirrors.yun-idc.com
Setting up Install Process
Resolving Dependencies
--Running Transaction check
---> Package nodejs.x86_64 0:0.10.29-1.el6 'll be installed
--Finished Dependency Resolution

Dependencies resolved

=============================================================================================================== ========================
Package Arch Version Repository Size
=============================================================================================================== ========================
Installing:
Nodejs x86_64 0.10.29-1.el6 Epel 498 K

Transaction Summary
=============================================================================================================== ========================
Install 1 package (s)

Total Download size:498 k
Installed size:1.5 M
Is this OK [y/n]: Y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing Delta Metadata
Package (s) data still to download:498 K
nodejs-0.10.29-1.el6.x86_64.rpm | 498 KB 00:00
Running Rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing:nodejs-0.10.29-1.el6.x86_64 1/1
Verifying:nodejs-0.10.29-1.el6.x86_64 1/1

Installed:
Nodejs.x86_64 0:0.10.29-1.el6

complete!




Ruby on Rails:could not find a JavaScript runtime

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.