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
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.
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.