I want to downgrade my version using npm. The current version is 16.13.1. I want to downgrade this to 12.0.1. Can anyone tell me how to do it?
Thanks!
I want to downgrade my version using npm. The current version is 16.13.1. I want to downgrade this to 12.0.1. Can anyone tell me how to do it?
Thanks!
use node version manager nvm, you can switch any node version that you want.
More details
You can use: npm install -g node@version.
So for example in your case it would be -> sudo npm install -g node@12.0.1
might have to force it with --force at the end.
Try the n package from npm. Find it here.
npm install -g n
n 10.16.0
n lts
Simply execute
n <version>to download and install a version of Node.js. If has already been downloaded, n will install from its cache.
I finally found a simple solution.
It works fine for me.
Thanks!