简体   繁体   English

当我尝试打开http:// localhost:3000 / pages / home时出错

[英]Error when I try to open http://localhost:3000/pages/home

ExecJS::ProgramError in Pages#home Pages#home中的ExecJS :: ProgramError


Showing c:/Users/Administrator/desktop/pinteresting/app/views/layouts/application.html.erb where line #6 raised: 显示c:/Users/Administrator/desktop/pinteresting/app/views/layouts/application.html.erb,其中第6行出现:

TypeError: Object doesn't support this property or method (in c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee) TypeError:对象不支持此属性或方法(在c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js中。咖啡)


Extracted source (around line #6): 提取的源(第6行附近):


Pinteresting <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> Pinteresting <%= stylesheet_link_tag'application',media:'all','data-turbolinks-track'=>正确%> <%= javascript_include_tag'application','data-turbolinks-track'=>正确%> <%= csrf_meta_tags%>

It seems like nodejs is not installed on your machine. 您的计算机上似乎未安装nodejs。 Install it using 使用安装

sudo apt-get install nodejs

or add execjs gem in you gemfile. 或在您的gemfile中添加execjs gem。

As for running javaScript code from Ruby we need one of above. 至于从Ruby运行JavaScript代码,我们需要以上之一。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我想将 localhost:4000 重定向到 localhost:3000 时出现错误 CORS - Error CORS when i want redirecting localhost:4000 to localhost:3000 连接到http:// localhost:3000 / api / contact时出错 - there was error connecting to http://localhost:3000/api/contact 从源 'http://localhost:3000' 在 'http://localhost:8080/home/data' 访问 XMLHttpRequest - Access to XMLHttpRequest at 'http://localhost:8080/home/data' from origin 'http://localhost:3000' 我正在制作客户资料(示例),但在添加数据时出现错误 - POST http://localhost:3000/cusprofiles/add 400 (Bad Request) - I am making a cutomer profile (a sample) and I am getting the error - POST http://localhost:3000/cusprofiles/add 400 (Bad Request) when I add data 使用服务器而不是本地机器时,我应该用什么替换“http://localhost:3000”? - What do I replace "http://localhost:3000" with when using a server and not local machine? 为什么我得到“http://localhost:3000/”? 在反应中使用useNavigate时的路线? - Why am I getting 'http://localhost:3000/?' route when using useNavigate in react? 我收到此错误“ERROR Error Code: 200 Message: Http failure during parsing for http://localhost:3000/login” - I am getting this error “ ERROR Error Code: 200 Message: Http failure during parsing for http://localhost:3000/login” 使用 vanilla spa 时出现错误 router.js:66 GET http://localhost:3000/views/Category.html 404 (Not Found) - when use vanilla spa i have an error router.js:66 GET http://localhost:3000/views/Category.html 404 (Not Found) POST http:// localhost:3000 / upload 500(内部服务器错误) - POST http://localhost:3000/upload 500 (Internal Server Error) 当我尝试通过连接到// localhost:3000来显示html页面时显示错误,错误被上传为片段 - error is being shown when I'm trying to display an html page by connecting to //localhost:3000, the error is uploaded as a snippet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM