Trusted answers to developer questions

How to downgrade node version

Get Started With Machine Learning

Learn the fundamentals of Machine Learning with this free course. Future-proof your career by adding ML skills to your toolkit — or prepare to land a job in AI or Data Science.

You can use n in Linux/macOS and nvm in Windows to manage node’s version.

Both n and nvm provide an easy interface to downgrade to a specific node version.

Install n or nvm

On Linux and macOS:
npm install -g n

n is not supported natively on Windows.

On Windows:
Use nvm, available for download here.

Downgrading Node

  • After installing n, enter the following command to downgrade to any version of Node:
    n <version>.

For example, running n 10.24.0 will install Node version 10.24.0.

  • For Windows and nvm, the command is:
    nvm install <version>.
  • After installation, run nvm use <version> to switch to the downgraded version of Node.

RELATED TAGS

node

CONTRIBUTOR

Nouman Abbasi
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?