Node install and update
1 . curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh
2. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash //install nvm
3. source ~/.bashrc // This will install the nvm script to your user account. To use it, you must first source your .bashrc file:
4. nvm list-remote //to check which latest version avliable
5. nvm install v22.12.0 //install new version
6. nvm alias default 20.14.0 //To set deualt the node virson
6. nvm use --lts //to make it default
7. nvm list You can see the different versions you have installed
8. nvm use 22.12.0 // use current version
9. nvm uninstall 22.9.0 / uninstall old version
10. nvm list //now verify is it default or not
===============================
5. To set deualt the node virson
//nvm alias default 20.14.0
Comments