Reputation: 1147
I just installed node.js and I also set PATH in environment variables. PATH value is:
C:\Program Files\Java\jdk1.8.0_25\bin;C:\android\adt\sdk\platform-tools;C:\android\adt\sdk\tools;C:\wamp\www\ant\bin;C:\Program Files\nodejs;
In short term
<jdk bin dir path>;<android platform-tools dir path>;<android tools dir path>;<apache ant bin dir path>;<nodejs path>
Android command working properly.
but when I execute node command, it is not responding.
I wait for response around 30 minutes but nothing happened.
Now if I pressed enter then cmd look like below image:
I am new with node.js. What is the issue?
Upvotes: 2
Views: 322
Reputation: 28837
When you write just node
your console enters "node mode" not bash or windows shell anymore. That is basically like a browser console, JavaScript welcome :)
What you want to do is run/open some ".js" file for example and do node index.js
. That will run the code inside that index.js
file.
Upvotes: 2