Node.js for PHP Sites
On this site, you will find a guide on installing Node.js via the nvm (Node Version Manager) for your site.
- Log in via SSH with the Site User:
ssh john-doe@server-ip-address
- Install nvm with the following command:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
- Update the current shell environment:
source ~/.bashrc
- Install your required Node.js version e.g. 22:
nvm install 22
- Activate the installed Node.js version:
nvm use 22
- Done! Check the Node.js version:
node -v