Last updated 8 months ago
We can get latest version of NodeJS by -
$ curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
Note: This will setup NodeJS 16 on the system.
$ sudo apt-get install -y nodejs
This will install NodeJS and NPM.
Source:
Reference(s)