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

TyForHelpDude
  • 4,828
  • 10
  • 48
  • 96

1 Answers1

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.

Niroshan Ranapathi
  • 3,007
  • 1
  • 25
  • 35
  • 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 – TyForHelpDude Dec 30 '16 at 09:18