I need to upgrade to the latest version of node.js (today is 22.5.1) on a Raspbian GNU/Linux 11 (bullseye), but afterall the installed version is always 12.22.12 (the current version).
I tryed:
sudo apt remove nodejs
sudo apt remove node
sudo apt install nodejs
then
nodejs -v
shows v12.22.12
I also tryed
sudo apt remove nodejs
sudo apt remove node
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
with the same result. Did I miss something?
Can anyone help me? Thanks