ubuntu 24.04 - setting up nodejs 22/20 instead of install older versions nodejs

When you tries to install nodejs usng  

sudo apt install -y nodejs

this typically installs nodejs 18 on ubuntu. To upgrade to a newer version of it, you have to 

curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -

And then run 

sudo apt install -y nodejs

And then you have node 22 installed:




Comments

Popular posts from this blog

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error