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 



===============================

For NVMv (node Virson manager)
1. first install nvm
// curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

2. This will install nvm in .bashrc  // always follow this command in first time nvm installer
// source ~/.bashrc

3. check which Vinson you want to use
// nvm list-remote

4.now install nodejs
// nvm install v20.14.0

5. To set deualt the node virson
 //nvm alias default 20.14.0

6. to uninstall nodejs
// nvm uninstall v20.13.0  //never delete you cureent nodejs frist install latest virson and then set defualt that virsion and then remove previous version






Comments

Popular posts from this blog

CyberSecurity

VERTICAL SCALING 💋

prisma using in project idx 13.3