I have installed node.js v5.12.0 but version is v0.12.2
I installed Node.js from ( https://nodejs.org/dist/latest-v5.x/node-v5.12.0-x64.msi ) but the problem is its version is v0.12.2 instead of v5.12.0 that is required. I am trying to update my Node.js 5.2 installer but still showing v0.12.2 version. I uninstalled Node.js and reinstalled node-v5.12.0-x64.msi but still not updated. Because of this, I cannot run additional commands to set up the ionic environment.
source to share
Open terminal and type where node
It should point to an older version of node (v0.12.2) that is still installed on your machine, eg C:\bin\node
.
Since Node.js is portable, there may be multiple versions on your machine.
If it can't be deleted, just delete the folder C:\bin\node
. Then:
- Open Windows System Properties / Advanced System Properties
- Click on Environment Variables and change the PATH variable
- Remove the path of the old version of the node (
C:\bin\node
in our example) inside your value . - Reinstall node v5.
Close terminal and open a new one, then type where node
, it should point to Node.js v5
source to share
(Not a direct solution)
You can try installing with nvm
Remove nodejs and follow instructions from https://github.com/coreybutler/nvm-windows
source to share