`
qq125922714
  • 浏览: 36410 次
社区版块
存档分类
最新评论

Could not find a JavaScript runtime

阅读更多

    My Rails3.1 app worked fine on Windows but got the "Could not find JavaScript runtime" error when running on Linux.

Solution:




gem 'therubyracer', :platforms => :ruby


?The trick is knowing that :platforms => :ruby actually means only use this gem with "C Ruby(MRI) or Rubinius, but NOT Windows."

?

Windows has a builtin JavaScript engine which execjs can locate. On Linux there is not a builtin although there are plenty available to be installed. therubyracer is one of them.

?

Also, this problem could be resloved by installing nodejs

?

sudo apt-get install nodejs

 
0
0
分享到:
评论

相关推荐

    Could not find the main class

    "解决 MyEclipse 8.5 中的 “Could not find the main class” 问题" "Could not find the main class" 是一个常见的错误提示,出现于 MyEclipse 8.5 中使用外带的 Tomcat 时,因 JDK 版本问题所引起。下面将详细...

    Could not find agent

    标题 "Could not find agent" 提供的信息看似简短,但实际上是关于在运行或调试软件时遇到的一个常见错误。这个错误通常出现在Java开发环境中,当JVM(Java虚拟机)无法找到指定的Java代理(Java Agent)时会抛出。...

    could not find the main class,program will exit

    ### "Could Not Find the Main Class, Program Will Exit" 错误解析及解决方法 在Java编程过程中,我们经常会在开发环境中遇到各种各样的错误提示,其中“Could not find the main class, program will exit”是一...

    Could not find module ' \codna\Library\bin\geos_c.dll'

    Could not find module 'D:\codna\Library\bin\geos_c.dll'Could not find module 'D:\codna\Library\bin\geos_c.dll'Could not find module 'D:\codna\Library\bin\geos_c.dll'

    FileNotFoundError: Could not find module ‘***-dll.dll‘

    FileNotFoundError: Could not find module ‘***-dll.dll

    Tensorflow安装问题: Could not find a version that satisfies the requirement tensorflow

    主要介绍了Tensorflow安装问题: Could not find a version that satisfies the requirement tensorflow,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来...

    完整jar包资源,COULD NOT FIND cglib,包缺失使用

    本资源包是针对“COULD NOT FIND cglib”错误的解决方案,它包含了cglib库的jar包和对应的pom文件。让我们深入了解一下cglib库以及如何解决这种依赖缺失的问题。 **cglib库详解** CGlib(Code Generation Library)...

    jar文件Could not find the main class解决办法

    NULL 博文链接:https://yintech.iteye.com/blog/374842

    解决ImportError: Could not find 'cudnn64_7.dll'

    在使用深度学习框架如百度飞桨(PaddlePaddle)时,可能会遇到导入错误ImportError,具体表现为"Could not find 'cudnn64_7.dll'"。这个错误通常是由于CUDA(NVIDIA的Compute Unified Device Architecture)环境配置...

    xcode Could not find Developer Disk Image ios11.4

    xcode Could not find Developer Disk Image 11.4 (15F5061c) 亲测可用 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 记得一定要重启Xcode才生效.

    【故障解决】OGG-00446 Could not find archived log for sequence.pdf

    ### 故障解决:OGG-00446 Could not find archived log for sequence #### 一、背景与概述 在数据库同步过程中,Oracle GoldenGate (OGG) 是一种广泛使用的工具,它能够帮助实现不同数据库之间的高效同步。然而,...

    Could not find Developer Disk Image"问题

    当你遇到"Could not find Developer Disk Image"的问题时,这意味着系统无法找到对应的开发者磁盘映像文件,这可能会阻碍你的开发进程。以下是一些关于这个问题的详细解释、可能的原因以及解决方案: 1. **问题解释...

    could not find developer disk image

    解决Xcode在ipad/iphone9.2系统真机测试时出现could not find developer disk image问题,只要拷贝这个文件到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动...

    xcode could not find developer disk image 问题总结

    ### xcode could not find developer disk image 问题总结 #### 问题背景 在使用Xcode进行iOS应用程序开发时,经常会遇到“could not find developer disk image”的错误提示。此问题通常发生在更新了iOS系统版本...

    完整jar包资源,COULD NOT FIND stream,包缺失使用

    标题中的"COULD NOT FIND stream"提示,表明在执行构建命令时,系统无法找到名为`stream`的特定版本(2.5.2)的依赖。这通常是因为本地Maven仓库中没有该依赖或者网络下载失败导致的。 `stream-2.5.2.jar`是问题...

    完整jar包资源,COULD NOT FIND logback-classic,包缺失使用

    打包找不到 logback-classic问题 COULD NOT FIND logback-classic:logback-classic-1.1.3 解压后将jar包与pom文件都放在.m2\repository指定路径下

    xcode Could not find Developer Disk Image10.2 (14C92)各版本

    "Could not find Developer Disk Image" 是一个常见的错误,尤其是在更新Xcode或者尝试运行特定版本的iOS模拟器时会遇到。这个错误提示意味着Xcode无法找到必要的开发者磁盘映像文件,这是为了支持特定iOS版本所必需...

Global site tag (gtag.js) - Google Analytics