I installed node.js v5.12.0 but the version showing v0.12.2

Solution:

  1. List node.js installatios using nvm:

    nvm ls

  2. High chance the version you tried to install is also listed

  3. Select the version to use using nvm

    nvm use


Open a terminal and type where node

It should point to an old version of node (v0.12.2) still installed on your computer, for example C:\bin\node.

As Node.js is portable, you can have multiple versions on your computer.

If it cannot be uninstalled, simply delete C:\bin\node folder. Then:

  • Open Windows System Properties/Advanced system properties
  • Click on Environment variables and edit PATH variable
  • Remove inside its value the path of the old version of node (C:\bin\node in our example).
  • Re-install Node v5.

Close your terminal and open a new one then type where node, it should point to Node.js v5


Most likely, you have an old Node version for x86 platform, and you are installing a newer version for 64 bit. Remove the path to the x86 from the Paths env variable, or move it to after the 64 bit path.

Tags:

Node.Js