Sublime Text compilation CoffeeScript error solution, sublimecoffeescript

Source: Internet
Author: User

Sublime Text compilation CoffeeScript error solution, sublimecoffeescript

Try todaySublime TextCompileCoffeeScript
The CoffeeScript plug-in is installed first, and then a CoffeeScript is added to the compiler, but an error is prompted when trying to compile the code, and then the Internet looks for a solution without solution... So I tried to change the SublimeText build command, and the result was successful.

Error MessageAs follows:
/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:111    throw new Error("Cakefile not found in " + (process.cwd()));          ^Error: Cakefile not found in /home/bill/Desktop  at cakefileDirectory (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:111:11)  at cakefileDirectory (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:109:14)  at cakefileDirectory (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:109:14)  at cakefileDirectory (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:109:14)  at Object.exports.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:51:19)  at Object.<anonymous> (/usr/local/lib/node_modules/coffee-script/bin/cake:7:38)  at Module._compile (module.js:456:26)  at Object.Module._extensions..js (module.js:474:10)  at Module.load (module.js:356:32)  at Function.Module._load (module.js:312:12)  at Function.Module.runMain (module.js:497:10)  at startup (node.js:119:16)  at node.js:929:3[Finished in 0.1s with exit code 8]
Solution:

Open the CoffeeScript. sublime-build File in "/usr/share/sublime-text/Data/Packages/CoffeeScript", and change the content{ "cmd": ["coffee", "$file"], "selector": "source.coffee" }
Then you can use Sublime Text to compile the Coffee file.

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.