In our case, we start Rails as a "normal" user using the command
bundle exec puma -C config/puma.rb
As long as you have the "default" node nvm via nvm , you should be fine.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash nvm install v0.12.7 nvm alias default v0.12.7
The next time you log in as a user, which node should specify the path in nvm :
~/.nvm/versions/node/v0.12.7/bin/node
Similarly, Rails will get the node that will be used.
source share