how to update node version form 12 to 16 in debian?

My current version is 12.22.12, Please suggest me to update to version 16.
enter image description here

>Solution :

Use nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash

After installation:

nvm install 16

And finally, use your desired version:

nvm use 16

Confirm version:

node -v

Leave a Reply