ExecJS: No such file or directory @ unlink_internal

54 views
Skip to first unread message

Rodrigo Argumedo

unread,
Jun 24, 2015, 2:33:04 AM6/24/15
to rubyonra...@googlegroups.com

Hi, I just created a hobby Rails project and ran rails s just fine but visiting to root gives me this: 


Errno::ENOENT in Home#index

Showing C:/Users/Rodrigo Argumedo/projects/CRM/app/views/layouts/application.html.erb where line #6 raised:

No such file or directory @ unlink_internal - C:/Users/Rodrigo Argumedo/AppData/Local/Temp/execjs20150623-7724-1hcg3jzjson

Rails.root: C:/Users/Rodrigo Argumedo/projects/CRM

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


<%= yield %>


</body>
</html>


Is there a way to resolve this execjs temp file or directory that is now nonexistent? Or should I raise this issue on ExecJS's github repo?

Arif Hussain

unread,
Jun 25, 2015, 12:38:44 PM6/25/15
to rubyonra...@googlegroups.com
If you change the two times occurrence of 'application' to 'default' in your application.html.erb, it will fix the problem, but later you won't be able to show confirmation dialog box etc.
A better fix is to downgrade 
coffee-script-source from v 1.9.x to 1.8.0 as follows.

include in your Gemfile gem 'coffee-script-source', '1.8.0'

than run bundle update coffee-script-source

Reply all
Reply to author
Forward
0 new messages