Node.js build system in Sublime Text 2

后端 未结 13 2212
耶瑟儿~
耶瑟儿~ 2020-12-13 06:30

I justed started learning JavaScript. While doing that, I got tired of embedding my JavaScript code into an HTML document in order to run it in the browser. I thought it wou

13条回答
  •  無奈伤痛
    2020-12-13 07:05

    {
        "cmd": ["node","$file"]
    }
    

    works perfectly for me in windows and it shows the output in the sublime window. Although I dont know how to stop the server after from sublime, I have to search and kill the node process.

    Also, check node is in your PATH ;)

    Hope it works for you.

提交回复
热议问题