How to run node app with sublime text

前端 未结 6 581
旧巷少年郎
旧巷少年郎 2021-02-03 12:38

How would you run node app with sublime text? Like this, open the file app.js in sublime, go to menu->tools->build, and it just runs. Simple like that

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-03 13:05

    Create a build sytem with this code:

    {
       "cmd": ["node", "$file"],
       "selector" : "source.js"
    }
    

提交回复
热议问题