I am having npm version 8.1.2 but I want to install npm version 5.5.1

3.7k views Asked by At

Currently , I am having npm version 8 but I want to have npm 5.5.1 , Last time also I did npm i [email protected] this but I struggled through the module not found error , and finally I resolved but now I want to install lower version i.e 5.5.1 , please tell me the exact/correct steps for windows.

2

There are 2 answers

3
Kavya Murali On
npm install -g [email protected]

Try this

0
Emmanuella On

I found this solution:

You need to install npm-windows-upgrade

then use npm-windows-upgrade --npm version 5.5.1

Reference: upgrade npm on windows