2

I recently installed nodejs v6.9.2 via https://nodejs.org I try to update packages in cmd but it looks no change at all. I was able to change npm version with these commands, somethings wrong with nodejs in my pc.. Here is output:

enter image description here

How can I fix it

EDITED: here is npm and node version outputs. enter image description here

3
  • check version using node -v Commented Dec 30, 2016 at 7:44
  • Possible duplicate of How do I update npm on Windows? Commented Dec 30, 2016 at 7:45
  • @NileshSingh man I already tried that cant solve my problem Commented Dec 30, 2016 at 9:27

1 Answer 1

2

Best way of upgrade NPM on Windows:https://github.com/felixrieseberg/npm-windows-upgrade

Open windows power shell with Administrator access

npm install -g npm-windows-upgrade npm-windows-upgrade 

Do not run npm i -g npm. Instead use npm-windows-upgrade to update npm going forward. Also if you run the NodeJS installer, it will replace the node version.

Sign up to request clarification or add additional context in comments.

1 Comment

Ty for answer it looks valueable but why this comands shows 4.1.1 as latest version of npm I already installed 6.9.2. how can I update it to this version. "npm-windows-upgrade --npm-version 6.9.2" not works

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.