0

I am starting to use Angular 2, which requires npm 3.x.x, so I installed it with npm install -g npm3. The Angular 2 tutorials tell me to verify that I have npm 3.x.x by running npm -v, however when I run that, it still says I have version 2.15.8. It shows that I have version 3.10.7 if I run npm3 -v, but not if I run npm -v. Is this going to cause errors? Do I need to it to say I'm using version 3.x.x when I run npm -v? If so, what do I need to do?

EDIT: Node.js version: node -v reveals that I am using v4.4.7 (Angular2 requires something between 4.4.x - 5.x.x, so I should be good here)
OS: I am currently using Windows 10 on a PC, but have had the same issue with my Mac.

Bryan
  • 2,951
  • 11
  • 59
  • 101

2 Answers2

1

Upgrade npm using this command - npm install -g npm

Sanket
  • 19,295
  • 10
  • 71
  • 82
0

Maybe this helps:

https://www.google.de/search?q=update+npm+windows

Updating npm with npm itself will store npm.cmd in ../appdata/roaming/. To avoid conflicts with an older npm version you need to remove npm.cmd from C:\Program Files\nodejs\npm.cmd

Gregor Woiwode
  • 1,046
  • 1
  • 9
  • 12