How to run server written in js with Node.js

前端 未结 6 1233
梦毁少年i
梦毁少年i 2020-12-24 12:33

I have installed node.js from here http://nodejs.org/ . in my windows8 machine. copied the example server code in my server.js file

var http = require(\'ht         


        
6条回答
  •  有刺的猬
    2020-12-24 13:27

    Just go on that directory of your JS file from cmd and write node jsFile.js or even node jsFile; both will work fine.

提交回复
热议问题