ExecJS::RuntimeError on Windows trying to follow rubytutorial

后端 未结 13 2159
清歌不尽
清歌不尽 2020-11-22 07:27

UPDATE: Colin\'s suggestion of removing the line //= require_tree . has fixed the issue.

I have wasted over 2 days trying to follow every suggestion

13条回答
  •  萌比男神i
    2020-11-22 07:29

    For windows users, this may work. There is a problem with coffee-script-source >1.9.0 running on windows.

    It seems you have to add this to your gemfile:

    gem 'coffee-script-source', '1.8.0'

    then do

    bundle update coffee-script-source

    I tried all the above options, and also mixed up a few combinations of them, till I found this Rails-4, ExecJS::ProgramError in Pages#welcome and had done multiple system gem updates and bundle installs and updates.

    I reverted all my trials and downgraded my coffee-script-source and it works. Posting here to help out anyone else, who may have a similar issue.

    Updating files in vendor/cache

    coffee-script-source-1.8.0.gem Removing outdated .gem files from vendor/cache coffee-script-source-1.9.1.1.gem Bundle updated!

提交回复
热议问题