Find a way to change Node Version

12.7k views Asked by At

I have Node:13.5.0 version but it is not compatible with Angular CLI 8.3.21 version. So I want to get back to the Node 12. version.

3

There are 3 answers

3
547n00n On BEST ANSWER

try this

npm install -g n

n 12.13.0

or if you're on windows you can try this : github.com/coreybutler/nvm-windows

1
dmjy On

There are several ways to manage different versions.

  • nodenv
  • nvm
  • nodebrew

I personally recommend nodenv because we can set up different versions for different directories (= different projects) easily.

Simple example (local)

cd /path/to/project
nodenv install <version>
nodenv local <version>

Simple example (global)

nodenv install <version>
nodenv global <version>
1
Graham Laight On

For Windows the straightforward solution is to go the Control Panel's uninstall page, uninstall Node.js, then get the install package from https://nodejs.org/en/download/ .