How can I downgrade Node using NPM?
Asked Answered
T

1

8

I need to downgrade my Node version from 10.x to 8.12. It appears I should be able to run this command:

$ npm install [email protected]

That runs, says removed 1 package, updates 1 package...

But then I check version and it keeps returning my old version:

$ node -v

v10.11.0

Am I doing something wrong or misunderstanding the commands/process?

Temperament answered 23/10, 2018 at 21:50 Comment(0)
T
15

I am sheepishly answering my own question.

The issue was that node was a global install. Therefore, I needed to install the lower version globally ala the -g option:

$ npm install -g [email protected]

Temperament answered 23/10, 2018 at 22:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.