Currently on version 8.5.3 and trying to downgrade to v6. The output seems fine but the result is still 8.5.3 even after restarting shells/OS:
PS C:\Users\myUser> npm install -g npm@latest-6
removed 384 packages, changed 3 packages, and audited 54 packages in 8s
found 0 vulnerabilities
PS C:\Users\myUser> npm --version
8.5.3
Powershell is being run with administration privileges, due to some errors when running it without privileges.
CodePudding user response:
Instead of using:
npm install -g npm@latest-6
Use this:
npm install -g [email protected]
And after that reboot (restart) your computer
CodePudding user response:
for your version please use npm install -g [email protected]
for latest version please use npm install -g npm@latest