I'm having this issue. Did you find a solution to tell Forge to use a newer version of Node? I have installed nvm and when ssh'ing in it says I am using
v10.8.0
however if I run node -v in my deploy script it says
As I was stuck with this issue, I decided to necro this thread to post an answer. In my example, I use nvm to control node version.
Requires installation of nvm on server before deploy. If we don't tell Forge which node/nvm to use, it will use the Node located in /usr/bin/node. This is done by reading and executing (source or dot operator .) nvm file to launch it