Reputation: 57
I want to downgrade the NodeJs version to 16 as some of the dependencies I am using in my React app do not support NodeJs 17. I tried this method (another post on stack overflow) also but this thing is not getting installed on my PC.
Any sort of help is appreciated. Thanks in advance.
Upvotes: 5
Views: 37685
Reputation: 1018
nvm use 14.18.1
nvm install 14.8.1
-> repeat #3.node -v
to verify.Upvotes: 0
Reputation: 104
Nodejs.org has previous releases versions in their distribution directory. Find the node version you need and install it.
Upvotes: 0
Reputation: 121
Clearing the local installation of node, to find out where is and delete
where node
Install nvm
Show all the versions
nvm ls available
Install what you want
nvm install 16.11.0
nvm use 16.11.0
Check node version
node -v
I have tried several ways and this works, hope it helps.
Upvotes: 6
Reputation: 71
You can use Node Version Manager(NVM).where you can downgrade or upgrade any node version. Please check
Windows: https://dev.to/skaytech/how-to-install-node-version-manager-nvm-for-windows-10-4nbi Ubuntu: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04
Upvotes: 3
Reputation: 543
n is the simplest package to manage your node versions.
https://www.npmjs.com/package/n
Upvotes: -1