Rails-4, ExecJS::ProgramError in Pages#welcome

后端 未结 8 1864
臣服心动
臣服心动 2020-11-27 22:06

I am trying to add login-logout functionality to my rails app. For that I added bcrypt gem for password encryption and also access controller. Now when I run it

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 22:12

    Install node.js x86 version (Not x64 version even if have 64-bit computer) You can download it from https://nodejs.org/en/download/

    All the other answers are not neccesary.

    • No need for "coffee-script-source" or "execjs"
    • No need to modify even execjs files
    • No need to add path for Node.js as x86 adds it automatically

    After installing node.js, you need to restart the rails server AND the CMD shell where it is running, to update the path it will see.

提交回复
热议问题