Reputation: 105
I have installed Node Js on Windows 10 64 bit to learn Node JS. When i type node -v a cmd window flashes and goes away. When i run the node.exe from the program files, i can run the node commands there such as "console.log". Am I missing something?
Upvotes: 1
Views: 5188
Reputation: 29669
I've tried all these things. Nothing fixes it. I've used Node for years on Mac and Linux. I am going to have to use a vm.
When I run node server.js
the prompt returns and nothing happens.
Windows11 Sux.
Upvotes: 1
Reputation: 63
What helped me was to change the cmd.exe settings to TrustedInstaller. Right click on cmd.exe -> properties -> security -> change the setting there.
Upvotes: 0
Reputation: 115
I just had this problem yesterday with windows 8 64 bit version.
On a whim, I checked if the node.exe [right click on the icon] properties have "run as administrator" checked in the compatibility tab. It did. But my command window wasn't in an elevated [administrator] prompt.
I just needed to check the version, node --version.
Unchecking run as administrator stopped the window from disappearing.
Upvotes: 0
Reputation: 131
I had the same problem. I tried uninstalling/reinstalling different versions, but ultimately reinstalling Windows did the trick.
Upvotes: 0