New to using a nodejs environment on a Pi.
I'm using a RPi 4B with Debian GNU/Linux 11 (bullseye) with nodejs v12.22.12 and npm v7.5.2. Latest nodejs is supposed to be v19, npm v9. I tried updating node and npm as follows:
$ sudo apt update $ sudo apt full-upgrade $ sudo reboot
But npm and node still return the same versions. I also tried uninstalling and reinstalling nodejs without specifying a specific version (so presumably it'd grab the latest stable?) but still the same version as before.
Is it trying to install this specific version for a reason? Why is it so far behind?