How to run node app with sublime text

前端 未结 6 584
旧巷少年郎
旧巷少年郎 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:03

    To run nodejs on sublime text, install node package "node dev" then create a sublime text build, the code should look like this

    {
      "cmd": ["node-dev", "$file"],
      "selector" : "source.js",
      "path" : "/usr/local/bin"
    }
    

    Now to run a nodejs app, go to menu->tools->build.

提交回复
热议问题