In the following steps, we will guide you through the installation process of Node.js on a Debian server that is running the myVesta Hosting Panel.
1. First you should check latest Node.js version on https://github.com/nodesource/distributions
2. Now all you have to do is run these commands in your SSH, as root:
The version depends on the version you need, as mentioned in step one. Instead of 18.x, insert the desired version number.
Code: Select all
curl -sL https://deb.nodesource.com/setup_18.x > setup_18.x
chmod +x setup_18.x
apt install -y nodejs build-essential libssl-dev
The following are some posts related to this topic: