Node Version Management in Production on Ubuntu 20.04 NGINX several sites

I have several sites/apps on the same Ubuntu 20.04 server with NGINX server blocks. The NodeJS apps are using different versions on NodeJS. Anyone who has experience/advice on how to install/configure nvm, volta or nvs in production to switch node versions and use different node versions for respective apps on the same Ubuntu server?

I have a WordPress site at /var/www/ (NGINX PHP) and I want my NodeJS apps to run in /var/www/ (they will consume JSON Rest APIs from WordPress). How shall I configure to have my nodejsapps in the same html directory as my WordPress site?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!