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 ?
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)
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 .
Better you try like this
npm install -g [email protected]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With