[英]run simple html or js file in node
I've created node folder and install the node server which is working just fine I want to add to it some simple html file or js file and run it, what is the simplest way to do it ? 我已经创建了节点文件夹并安装了可以正常工作的节点服务器,我想向其中添加一些简单的html文件或js文件并运行它,最简单的方法是什么?
Thanks! 谢谢!
Either get nodemon through npm, and then in your terminal run nodemon [your file here]
or you can use node [your file here]
. 通过npm获取nodemon,然后在终端中运行nodemon [your file here]
或者您可以使用node [your file here]
。
Nodemon is nice because it will restart your server when you change the files within it. Nodemon很不错,因为它会在您更改服务器中的文件时重新启动服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.