How to Install an Old Version of Node And npm

--

Sometimes at work or in any other situation, you need to use an old version of node and npm, so here is how you can do that.

Steps:

1- Check your existing version.

2- Download the node version you are looking for.

3- Download a specific npm version.

1- To check your current version:

Node version :

node -v

npm version :

npm-v

2- To download a specific node version :

Check the version you need and download it as a msi extension from here.

3- To download a specific npm version :

Let’s say you want to download version number 7.5.3, so here is how you can download it :

npm install npm@7.5.3 -g

Close the terminal, open it again, and check the version.

--

--