I need 2 versions of NodeJS to run two different applications. One version is available by default, so I can run it by calling node . Another version is installed on ~/node-v10/bin/node .
When I do forever start app.js , it started with the first version. I
How do I run a wever script with the second version of node? There is no configuration on Forever that allows me to specify the node path.
I tried this, but it does not work. Forever still starts with the old version:
NODE_PATH=~/node-v10/bin/node forever start app.js
source share