Ruby on Rails installation Error on Ubuntu 12.04 -


i installed ruby , rails using rvm.

my ubuntu version 12.04 ruby version ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux] rails version rails 4.1.2 rvm version rvm 1.25.27 (stable)

after installation create demo application rails new demo when type rake getting below error

hadoopnode1@hadoopnode1:~/work/demo$ rake  rake aborted!  execjs::runtimeunavailable: not find javascript runtime. see https://github.com/sstephenson/execjs list of available runtimes.  /home/hadoopnode1/.rvm/gems/ruby-2.1.2/gems/execjs-2.2.1/lib/execjs/runtimes.rb:51:in `autodetect'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2/gems/execjs-2.2.1/lib/execjs.rb:5:in `<module:execjs>'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2/gems/execjs-2.2.1/lib/execjs.rb:4:in `<top (required)>'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2/gems/uglifier-2.5.1/lib/uglifier.rb:3:in `require'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2/gems/uglifier-2.5.1/lib/uglifier.rb:3:in `<top (required)>'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require'  /home/hadoopnode1/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:132:in `require'  /home/hadoopnode1/work/demo/config/application.rb:7:in `<top (required)>'  /home/hadoopnode1/work/demo/rakefile:4:in `<top (required)>'  (see full trace running task --trace) 

please me on this..

you need javascript runtime nodejs

sudo apt-get install nodejs 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -