Sublime Text compilation Coffeescript Error resolution

Source: Internet
Author: User
Tags sublime text

Try compiling with Sublime Text today coffeescript
First installed the Coffeescript plug-in, and then the compiler more than one coffeescript, but try to compile but prompted an error, and then surf the Internet to find solutions without solution ... So I tried to change the next Sublimetext build command, and the result was successful.

error MessageAs follows:
/usr/Local/lib/node_modules/coffee-Script/lib/coffee-Script/cake.js:111throw New Error ("Cakefile not found in"+ (PROCESS.CWD ())); ^error:cakefile notFoundinch/home/bill/desktop atCakefiledirectory (/usr/Local/lib/node_modules/coffee-Script/lib/coffee-Script/cake.js:111: One) atCakefiledirectory (/usr/Local/lib/node_modules/coffee-Script/lib/coffee-Script/cake.js:109: -) atCakefiledirectory (/usr/Local/lib/node_modules/coffee-Script/lib/coffee-Script/cake.js:109: -) atCakefiledirectory (/usr/Local/lib/node_modules/coffee-Script/lib/coffee-Script/cake.js:109: -) atObject.exports.Run(/usr/Local/lib/node_modules/coffee-Script/lib/coffee-Script/cake.js:Wuyi: +) atObject.<anonymous> (/usr/Local/lib/node_modules/coffee-Script/bin/cake:7: -) atModule._compile (module.js:456: -) atObject.module._extensions. JS (module.js:474:Ten) atModule.load (module.js:356: +) atFunction.module._load (module.js:312: A) atFunction.Module.runMain (module.js:497:Ten) atStartup (node. JS:119: -) atnode. JS:929:3[Finishedinch 0.1S with ExitCode8]
Workaround:

Open the Coffeescript plugin's location (my is "/usr/share/sublime-text/data/packages/coffeescript") in the Coffeescript.sublime-build file, Modify the content to { "cmd": ["coffee", "$file"], "selector": "source.coffee" }
You can then compile the coffee file with sublime text.

Sublime Text compilation Coffeescript Error resolution

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