A small problem encountered in developing node. js in Sublime Text3

Source: Internet
Author: User
Tags sublime text

Original digest self of front-end blog, welcome everyone to visit

http://www.hacke2.cn

Previous Sublime Text 2 package management problems, can not install new package, let people develop very catch urgent, today installed a 3, this problem solved

Let's play node. js with sublime Text!

CN node is very clear, here is not a fine table

http://cnodejs.org/topic/51ee453af4963ade0ebde85e

Here's a question that they're talking about.

Re-run after port occupancy

I've been doing this for a while, and I finally solved it in the following way.

{    //Add a sentence here to turn off    "cmd": ["taskkill/f/im Node.exe", ""],    "cmd": ["Node", "$file"]} 

Re-run after port occupancy

But there is also a problem, if your app.js is running, and you are debugging unit tests here, this will turn off the main program, this thing can not be used

Full Nodejs.sublime-build

{  "cmd": ["Node", "$file"],  "File_regex": "^[]*file \" (... *) \ ", line ([0-9]*)",  "selector": "Source.js",  "shell": true,  "encoding": "Utf-8",  "Windows":    {" CMD ": [" taskkill/f/im Node.exe "," "],    " cmd ": [" Node "," $file "]    },  " Linux ":    {        " cmd ": [" Killall Node Node "," $file "]    }}

  

A small problem encountered in developing node. js in Sublime Text3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.