Solve sublime text run JavaScript console no output problem

Source: Internet
Author: User
Tags sublime text
1. Use Nodejs to run JavaScript in sublime text
  • Download and install Nodejs
  • In sublime text new build System:tools->build system->new build system ..., enter the code:

"cmd": ["Node", "$file"],
"Selector": "Source.js"

Save as a new file, arbitrarily named, Eg:node.

  • Restart Sublime text and select Build System->node.
  • When debugging JS, press F7, or ctr+b, you can run JS

2. Solve console No output problem

After I have configured the sublime text as described above, the console has no output, and no relevant information has been found. Finally found that the reason is to save JS folder with the Chinese folder name--, change to English name.

Note: Save the JS file folder must use the English name!

Solve sublime text run JavaScript console no output problem

Related Article

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: 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.