4

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.

Kamalka Fernando
  • 153
  • 1
  • 2
  • 13
  • You can use [nvm](http://nvm.sh). It makes it very convenient to switch between versions. – Mark Apr 22 '20 at 01:59

3 Answers3

3

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

547n00n
  • 1,356
  • 6
  • 30
  • 55
3

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>
dmjy
  • 1,183
  • 3
  • 10
  • 26
1

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/ .

Graham Laight
  • 4,700
  • 3
  • 29
  • 28