Home > other >  I use node -v but did not get the real version
I use node -v but did not get the real version

Time:12-06

As you can see, I have two different versions of node.js, what can I do when book node -v in cmd I get the real version is v17.2.0

enter image description here

screenshot from cmd

CodePudding user response:

You have multiple installations of node, check your PATH.

path

Also I'd recommend using NVS to manage node versions on your machine.

nvs add 14
nvs add 17

nvs use 14
nvs use 17
  • Related