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

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type