Node.js is an open-source, cross-platform JavaScript runtime environment. Node.js includes NPM in the installation package as well.
{% hint style="success" %}
Difficulty: Easy

admin, update the packages and upgrade to keep up to date with the OS, press "y" and "enter" when neededsudo apt update && sudo apt full-upgrade
cd /tmp
VERSION=22
curl -fsSL https://deb.nodesource.com/setup_$VERSION.x -o nodesource_setup.sh
sudo -E bash nodesource_setup.sh
enter or directly enter if the prompt asks yousudo apt update && sudo apt install nodejs
node -v
Example of expected output:
v18.16.0
npm -v
Example of expected output:
9.5.1
rm nodesource_setup.sh
admin, stop the current dependencies services of the Node + NPM, that are actually BTC RPC Explorer + Thunderhubsudo systemctl stop btcrpcexplorer && sudo systemctl stop thunderhub
sudo apt update && sudo apt full-upgrade
node -v && npm -v
sudo systemctl start btcrpcexplorer && sudo systemctl start thunderhub
admin, stop the current dependencies services of the Node + NPM, that are actually BTC RPC Explorer + Thunderhubsudo systemctl stop btcrpcexplorer && sudo systemctl stop thunderhub
cd /tmp
VERSION=22
{% hint style="info" %}
Here is important that you change the environment variable to the immediately higher LTS version, for example: 20 > 22
curl -fsSL https://deb.nodesource.com/setup_$VERSION.x -o nodesource_setup.sh
sudo -E bash nodesource_setup.sh
enter or directly enter if the prompt asks yousudo apt update && sudo apt install nodejs
node -v && npm -v
sudo systemctl start btcrpcexplorer && sudo systemctl start thunderhub
sudo apt autoremove nodejs --purge && sudo rm /etc/apt/sources.list.d/nodesource.list