Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade NPM to specific version 6.4.1 on windows?

Tags:

node.js

npm

On my windows 10 I have NPM 5.5.1 & Node 8.9.2 installed.

When I run the the command "npm i -g npm 6.4.1" I get bellow error. How to upgrade npm to 6.4.1 from 5.5.1 ?

enter image description here

like image 415
Zeus Avatar asked Dec 11 '18 03:12

Zeus


People also ask

How can I update npm on Windows?

To update NPM, this worked for me: Navigate in your shell to your node installation directory, eg C:\Program Files (x86)\nodejs. run npm install npm (no -g option)

How do I install a specific version of Node in Windows?

To install a specific version of Node, you need to run nvm list available first so you can see the versions of Node that are available. To install that specific version, run nvm install node-version-number . For example, nvm install 14.20.0 .


1 Answers

Better you try like this

npm install -g [email protected]

like image 128
Ratan Uday Kumar Avatar answered Nov 10 '22 12:11

Ratan Uday Kumar