Node + NPM
Node.js is an open-source, cross-platform JavaScript runtime environment. Node.js includes NPM in the installation package as well.
Difficulty: Easy
Installation
With user
admin
, update the packages and upgrade to keep up to date with the OS, press "y" and "enter" when needed
We will use the NodeSource Node.js Binary Distributions repository instructions. Download and import the NodeSource GPG key
Set the environment variable of the version
Create deb repository
Run update and install Node.js + NPM using the apt package manager. Press 'y' and enter
Check the correct installation of nodejs
Example of expected output:
Check the correct installation of NPM
Example of expected output:
Upgrade
With user
admin
, stop the current dependencies services of the Node + NPM, that are actually BTC RPC Explorer + Thunderhub
To upgrade simply type this command
If you want to update to the upper version LTS release (see here), e.g. 18.x to 20.x you need to follow the next steps:
Check the current version installed of the nodejs
If you have 18.x version, set the environment variable to the new number of versions, for example to 20.x
Update the current deb repository
Run the update and upgrade command to update the nodejs to the latest version. Press "y" and "enter" when needed
Check the correct installation to the latest release
Start BTC RPC Explorer & Thunderhub again
Uninstall
To uninstall type this command and press "y" and "enter" when needed
Last updated