博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ruby on Rails : Could not find a JavaScript runtime
阅读量:6582 次
发布时间:2019-06-24

本文共 3464 字,大约阅读时间需要 11 分钟。

hot3.png

[root@slave2 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/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require'
        from /usr/local/rvm/gems/ruby-2.0.0-p481@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-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each'
        from /usr/local/rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require'
        from /usr/local/rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each'
        from /usr/local/rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require'
        from /usr/local/rvm/gems/ruby-2.0.0-p481@global/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>'

[root@slave2 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 will 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!

转载于:https://my.oschina.net/monkeyzhu/blog/379702

你可能感兴趣的文章
gtp转换mbr
查看>>
django rest framework
查看>>
poj1985 求树的直径
查看>>
Python PyPI中国镜像
查看>>
centos 设置静态IP
查看>>
[Angularjs]系列——学习与实践
查看>>
js -- canvas img 封装
查看>>
转 我们工作的动力是什么 工作最终是为了什么?
查看>>
测试一个网站的最大并发量并发数并发用户
查看>>
适配器模式(数据库方面)支持不同的数据库连接
查看>>
CF456B Fedya and Maths 找规律
查看>>
nodejs安装及windows环境配置
查看>>
转载:Beginning WF 4.0翻译——第三章(流程图工作流)
查看>>
mysql alter table
查看>>
芯片测试
查看>>
在源代码中插入防止盗版代码片段的方式
查看>>
hdu 3367 Pseudoforest(最大生成树)
查看>>
一个人,一则故事,一份情愫,一个世界……
查看>>
ffserver联合ffmpeg建立媒体服务器
查看>>
下载稻草人下来刷新+gallery
查看>>