Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run nodejs without command prompt in windows?

I have tried the nodejs with command prompt. And it is working fine. How can i try to nodejs output without command prompt in windows platform.

like image 480
Sivanath Avatar asked Dec 14 '11 12:12

Sivanath


People also ask

How do I open a NodeJS terminal in Windows?

Node.js files must be initiated in the "Command Line Interface" program of your computer. How to open the command line interface on your computer depends on the operating system. For Windows users, press the start button and look for "Command Prompt", or simply write "cmd" in the search field.

Can we run NodeJS on Windows environment?

Node Version Manager, more commonly called nvm, is the most popular way to install multiple versions of Node. js, but is only available for Mac/Linux and not supported on Windows. Instead, we recommend installing nvm-windows and then using it to install Node. js and Node Package Manager (npm).


1 Answers

I assume you want to run Node.js as a service. You can use nssm: http://nssm.cc/

nssm.exe install sydjs-node c:\where-i-put-node-standalone\node.exe c:\code\SydJS\server.js
net start sydjs-node

Solution found here (I don't use node on windows =) ): http://blog.tatham.oddie.com.au/2011/03/16/node-js-on-windows/

like image 119
shawnjan Avatar answered Oct 11 '22 13:10

shawnjan