xxxxxxxxxx
// if we are using nvm with multiple version then we can changes version as below
//before installing
node -v
v18.16.1
npm --version
9.5.1
///////// install nvm https://github.com/coreybutler/nvm-windows///////
nvm install 14.19.1
///////// after installing ///////
nvm use 14.19.1
npm --version
6.14.16
node -v
v14.19.1
xxxxxxxxxx
Usage:
nvm install <version> Download and install a <version>
nvm use <version> Modify PATH to use <version>
nvm ls List versions (installed versions are blue)
xxxxxxxxxx
nvm use --delete-prefix $NODE_VERSION
example:
nvm use --delete-prefix v8.9.4