Ok, I need to do some long term testing but I THINK I got it working, I had to modify the path this way:
process.env.PATH = '/opt/node-v5.1.0-linux-x64/bin'+':'+process.env.PATH;
And temporarily add it to the path in shell while executing npm install so all the modules get built with the right version.
Thanks,
Richard