简体   繁体   English

如何在Windows中没有命令提示符的情况下运行nodejs?

[英]How to run nodejs without command prompt in windows?

I have tried the nodejs with command prompt. 我用命令提示符尝试了nodejs。 And it is working fine. 它工作正常。 How can i try to nodejs output without command prompt in windows platform. 如何在Windows平台上尝试没有命令提示符的nodejs输出。

I assume you want to run Node.js as a service. 我假设你想运行Node.js作为服务。 You can use nssm: http://nssm.cc/ 你可以使用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/ 在这里找到的解决方案(我不在windows =上使用节点)): http//blog.tatham.oddie.com.au/2011/03/16/node-js-on-windows/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM