How to update Node/Npm in Ubuntu/Linux?
1- Install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
2- Run this command
nvm install node
3- Use latest node
nvm use version
May be you will encountered below error during node/npm version check command run.
node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory root@BOOK-VKAD2MI9OH:/home/neeraj_iwari/projects# node --version node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
To fix above please install
sudo apt update && sudo apt install -y libatomic1