2016-11-29 81 views
0

我從其他系統複製了一個項目。安裝所有依賴項並嘗試運行該項目。並出現錯誤:在rails上運行ruby項目失敗

$ rails server 
/var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) 
from /var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs.rb:5:in `<module:ExecJS>' 
from /var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>' 
from /var/lib/gems/2.3.0/gems/uglifier-3.0.3/lib/uglifier.rb:5:in `require' 
from /var/lib/gems/2.3.0/gems/uglifier-3.0.3/lib/uglifier.rb:5:in `<top (required)>' 
from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:72:in `require' 
from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:72:in `block (2 levels) in require' 
from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:70:in `each' 
from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:70:in `block in require' 
from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:59:in `each' 
from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:59:in `require' 
from /usr/lib/ruby/vendor_ruby/bundler.rb:132:in `require' 
from /var/www/html/psr-activity/config/application.rb:7:in `<top (required)>' 
from /var/lib/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `require' 
from /var/lib/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `block in server' 
from /var/lib/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap' 
from /var/lib/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server' 
from /var/lib/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!' 
from /var/lib/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>' 
from /var/www/html/psr-activity/bin/rails:9:in `require' 
from /var/www/html/psr-activity/bin/rails:9:in `<top (required)>' 
from /var/lib/gems/2.3.0/gems/spring-2.0.0/lib/spring/client/rails.rb:28:in `load' 
from /var/lib/gems/2.3.0/gems/spring-2.0.0/lib/spring/client/rails.rb:28:in `call' 
from /var/lib/gems/2.3.0/gems/spring-2.0.0/lib/spring/client/command.rb:7:in `call' 
from /var/lib/gems/2.3.0/gems/spring-2.0.0/lib/spring/client.rb:30:in `run' 
from /var/lib/gems/2.3.0/gems/spring-2.0.0/bin/spring:49:in `<top (required)>' 
from /var/lib/gems/2.3.0/gems/spring-2.0.0/lib/spring/binstub.rb:31:in `load' 
from /var/lib/gems/2.3.0/gems/spring-2.0.0/lib/spring/binstub.rb:31:in `<top (required)>' 
from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
from /var/www/html/psr-activity/bin/spring:14:in `<top (required)>' 
from bin/rails:3:in `load' 
from bin/rails:3:in `<main>' 

可能是什麼問題?

回答

相關問題