Manoj Prajapat
Manoj Prajapat

Reputation: 1147

Node command seems to not be working in Windows

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.

after node command

Now if I pressed enter then cmd look like below image:

after pressing enter

I am new with node.js. What is the issue?

Upvotes: 2

Views: 322

Answers (1)

Sergio
Sergio

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.jsfile.

Upvotes: 2

Related Questions