简体   繁体   中英

I get the following error ExecJS::ProgramError in Posts#index How do I fix this?

Here is a link to the image of my exact error:
http://puu.sh/fHXJf/f714496a53.png

Here is the rest of my code that may be the issue

This is in my Gemsfile:

source 'https://rubygems.org'

gem 'rails', '4.2.0'

gem 'sqlite3'
gem 'sass-rails', '~> 5.0'

gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc

This is in my application.html.erb:

<!DOCTYPE html>
<html>
<head>
   <title>Blogsite2</title>
   <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks- track' => true %>
   <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
   <%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>

通过下载Node.js并将其直接安装到我的C:驱动器来修复它!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM