I was running Node.js and Node-RED (depends on Node.js) normally one week ago. My system is Windows 8.1 64 bits.
Nevertheless, today I am having a issue:
As normally, I go to the node-red folder, and run node red.js. Then, surprisingly I got the following message from the prompt:
Node Commands
Syntax:
node {operator} [options] [arguments]
Parameters:
/? or /help - Display this help message.
list - List nodes or node history or the cluster
listcores - List cores on the cluster
view - View properties of a node
online - Set nodes or node to online state
offline - Set nodes or node to offline state
pause - Pause node [deprecated]
resume - Resume node [deprecated]
For more information about HPC command-line tools,
see http://go.microsoft.com/fwlink/?LinkId=120724.
So, after evaluating many things, such as, environment variables, npm and node folders, etc it seems to be ok. BUT, when I run npm -v
, the console shows the npm version installed. And when I run node -v
, I get the same message as above... I remember when I first installed Node.js I could see the node.js version installed.
In these days, I performed a dual boot with Linux Ubuntu 14.04 and I think this is may the problem (I performed I CCLEANER analysis that remove some Windows registers).
Currently, my personal/user path variables related to them are:
C:\Program Files\nodejs
System environment variables are:
C:\Program Files\nodejs
PS:
- The Node.js console (node.exe) opens normally.
- I tried to run the prompt as administrator and with my user.
- I need to run the 0.10x version of node.js. And this issue is related with this version (0.10x).
Thanks.