I am having trouble with installation of nodejs version 16 (I tried with v14 and v18 with same results). The default version for ubuntu is v12 but I need higher.
I followed instructions from https://github.com/nodesource/distributions/blob/master/README.md#debmanual
And the result:
user@:~$ nodejs -v
Command 'nodejs' not found, but can be installed with:
sudo apt install nodejs
user@:~$ sudo apt install nodejs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nodejs is already the newest version (16.18.0-deb-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Thanks for your time, Mark