亚洲免费在线视频-亚洲啊v-久久免费精品视频-国产精品va-看片地址-成人在线视频网

您的位置:首頁技術文章
文章詳情頁

ruby-on-rails - Ruby:使用rails server啟動webrick服務器的時候會報錯:Could not find a JavaScript runtime

瀏覽:67日期:2023-10-15 18:22:08

問題描述

版本信息:操作系統:KaliRuby:2.0.0p353Rails:4.1.0報錯信息如下所示:

root@kali:/var/ruby/blog# rails server/usr/local/rvm/gems/ruby-2.0.0-p353/gems/execjs-2.0.2/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-p353/gems/execjs-2.0.2/lib/execjs.rb:5:in `<module:ExecJS>’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/execjs-2.0.2/lib/execjs.rb:4:in `<top (required)>’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/uglifier-2.5.0/lib/uglifier.rb:3:in `require’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/uglifier-2.5.0/lib/uglifier.rb:3:in `<top (required)>’from /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require’from /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require’from /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each’from /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require’from /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each’from /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require’from /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler.rb:132:in `require’from /var/ruby/blog/config/application.rb:7:in `<top (required)>’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:79:in `require’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:79:in `block in server’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:76:in `tap’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:76:in `server’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:40:in `run_command!’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.1.0/lib/rails/commands.rb:17:in `<top (required)>’from /var/ruby/blog/bin/rails:8:in `require’from /var/ruby/blog/bin/rails:8:in `<top (required)>’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/spring-1.1.2/lib/spring/client/rails.rb:27:in `load’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/spring-1.1.2/lib/spring/client/rails.rb:27:in `call’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/spring-1.1.2/lib/spring/client/command.rb:7:in `call’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/spring-1.1.2/lib/spring/client.rb:26:in `run’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/spring-1.1.2/bin/spring:48:in `<top (required)>’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/spring-1.1.2/lib/spring/binstub.rb:11:in `load’from /usr/local/rvm/gems/ruby-2.0.0-p353/gems/spring-1.1.2/lib/spring/binstub.rb:11:in `<top (required)>’from /var/ruby/blog/bin/spring:16:in `require’from /var/ruby/blog/bin/spring:16:in `<top (required)>’from bin/rails:3:in `load’from bin/rails:3:in `<main>’

問題解答

回答1:

解決方法:

gem install execjsgem install therubyracersudo apt-get install nodejs

如果使用sudo apt-get install nodejs無法安裝的話,可以參考:http://www.cnblogs.com/hwpayg/archive/2012/11/04/2753404.html

標簽: JavaScript
相關文章:
主站蜘蛛池模板: 国产精品hd在线播放 | 国产三级精品三级国产 | 欧美做爰xxxⅹ性欧 欧美做爰免费大片在线观看 | 国产成人久久 | 欧美日韩中文字幕在线观看 | 国产高清精品自在线看 | 久久精品综合国产二区 | 欧美乱大交xxxxx | 日韩美女视频在线观看 | 在线视免费频观看韩国aaa | 殴美毛片| 久污| 91成人精品视频 | 国产在线一区二区三区欧美 | 在线观看国产一区二三区 | 国产一区二区成人 | 久草免费看 | 国产亚洲综合精品一区二区三区 | 韩日一级片 | 日韩色网站 | 成人中文字幕在线观看 | 亚洲欧洲一区二区三区久久 | 精品国产精品 | 欧美区在线 | 欧美成人免费全部观看天天性色 | 日本成a人伦片 | 精品久久久久久中文字幕 | 在线网站黄色 | 久久精品国产99国产精品亚洲 | 久久三级毛片 | 欧美日韩a级片 | 成人在线中文字幕 | 国产情侣真实露脸在线最新 | 亚洲精品美女国产一区 | 成熟的女性强烈交性视频 | 99视频九九精品视频在线观看 | 亚洲男人的天堂久久精品 | 精品在线观看国产 | 午夜在线伦理福利视频 | 中文字幕曰韩一区二区不卡 | 亚洲精品国产精品国自产网站 |