Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

node.js

I installed Node.js from (https://nodejs.org/dist/latest-v5.x/node-v5.12.0-x64.msi), but the issue is , its showing version v0.12.2 instead of v5.12.0 which is required. I try to update the node.js 5.2 installer but still showing version v0.12.2. I have uninstalled Node.js and reinstall node-v5.12.0-x64.msi but still it’s not updated. Due to this am not able to run further commands for Ionic environmental setup.

like image 236
Sam Avatar asked Apr 12 '17 11:04

Sam


People also ask

Can we have 2 versions of Node installed?

NVM allows installing multiple node js versions on the same machine and switching between the required node js version.

How do I tell what version of node JS I have installed?

To see if Node is installed, open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v . This should print the version number so you'll see something like this v0. 10.35 .


1 Answers

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

like image 193
Stephane Janicaud Avatar answered Nov 07 '22 14:11

Stephane Janicaud