Currently , I am having npm version 8 but I want to have npm 5.5.1 , Last time also I did npm i -g@5.5.1 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.
Asked
Active
Viewed 2,424 times
2 Answers
0
npm install -g npm@5.5.1
Try this
-
As mentioned , I did this only before but it not got installed and I was getting node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'semver' Require stack: this error, so now I don't wanna take risks – MaNav MaLhoTra Jan 28 '22 at 04:12
-
yarn global add npm - use this command to globally install npm using yarn – Kavya Murali Jan 28 '22 at 08:53
-
For windows yarn is not compatible ig? – MaNav MaLhoTra Jan 28 '22 at 09:06
0
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

Emmanuella
- 71
- 1
- 8