Install NVM / Node for all users including Jenkins

Install NVM / Node for all users including Jenkins

Node Version Manager (NVM) is normally installed for a single user, typically under ~/.nvm. This works well for development environments, but it can become problematic on servers where multiple users or services need Node.js. For example, on an Ubuntu server you may need Node.js for: Jenkins CI/CD jobs Supervisor-managed applications www-data Deployment scripts Regular SSH users A better approach for this scenario is to install NVM in a shared system location such as /opt/nvm....