Downgrade Node Js version

Viewed 1624

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.

OS: Windows enter image description here

Any sort of help is appreciated. Thanks in advance.

3 Answers

2022 update with examples

  1. Install nvm (See link readme: Windows uses installer, Linux has a CLI copy+paste bash script).
  2. Restart the shell (if it was open when installed) to register the new path.
  3. If you want 14.18.1, for example: nvm use 14.18.1
  4. If you don't have it installed, it'll let you know. In that case: nvm install 14.8.1 -> repeat #3.
  5. node -v to verify.
Related