Nodejs not working

I recently installed Nodejs on Windows 7 and it worked perfectly. A few days ago it stops working, for example: if I write "node C: / dir /.../ server.js", the console shows: "..." and does nothing.

I checked port 80 and it is free, can you help me?

enter image description here

+4
source share
3 answers

Do not enter node<enter> in the first place. In addition, you need quotes. When you opened cmd, directly type node "C:\Users\Us Navy\..." .

+8
source

When you run the node executable with no arguments, it opens a replacement useful for quickly messing around.

To start the file, specify the file as the first argument.

+3
source

Specify the URL of your file as an argument for "node.exe"
Eg.
node "C: /Sam/JS/server.js"

0
source

Source: https://habr.com/ru/post/1389936/


All Articles