Skip to main content

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.

  1. Log in via SSH with the Site User:
ssh john-doe@server-ip-address
  1. Install nvm with the following command:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
  1. Update the current shell environment:
source ~/.bashrc
  1. Install your required Node.js version e.g. 18:
nvm install 20
  1. Activate the installed Node.js version:
nvm use 20
  1. Done! Check the Node.js version:
node -v