我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

RubyonRails:CouldnotfindaJavaScriptruntime

[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 `'
        from /usr/local/rvm/gems/ruby-2.0.0-p481/gems/execjs-2.2.1/lib/execjs.rb:4:in `'
        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 `'
        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 `'
        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 '
        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 `'
        from bin/rails:4:in `require'
        from bin/rails:4:in `

'

创新互联-专业网站定制、快速模板网站建设、高性价比郓城网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式郓城网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖郓城地区。费用合理售后完善,十余年实体公司更值得信赖。

[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!


当前文章:RubyonRails:CouldnotfindaJavaScriptruntime
分享URL:http://shouzuofang.com/article/pgshhh.html

其他资讯