Sublime Text编译CoffeeScript出错解决方案
2015-03-22 01:23
756 查看
今天尝试用Sublime Text编译CoffeeScript
先安装了CoffeeScript的插件, 然后编译器中多了一项CoffeeScript, 但是尝试编译却提示出错, 然后上网寻找解决方法无解…于是就自己尝试去改了下SublimeText的build命令, 结果成功了
然后就可以用Sublime Text编译Coffee文件了
先安装了CoffeeScript的插件, 然后编译器中多了一项CoffeeScript, 但是尝试编译却提示出错, 然后上网寻找解决方法无解…于是就自己尝试去改了下SublimeText的build命令, 结果成功了
出错信息如下:
/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]
解决方法:
打开CoffeeScript插件的位置(我的是”/usr/share/sublime-text/Data/Packages/CoffeeScript”)中的CoffeeScript.sublime-build文件, 将内容修改为{ "cmd": ["coffee", "$file"], "selector": "source.coffee" }
然后就可以用Sublime Text编译Coffee文件了
相关文章推荐
- Cocos2d-x 3.2编译生成Android程序出错的解决方案:c++_static报错
- iOS XCode9 拖入文件编译出错解决方案 - 64位结构异常错误
- 在Centos x64 编译Poco 出错解决方案
- cocos2d-x3.2中2编译生成Android程序出错的解决方案:c++_static报错
- sublime text 2编译Python时打印中文报错的解决方案
- 程序编译出错记录及解决方案
- 在MAC OS X 10.9下编译CUDA 5.5例子程序出错解决方案
- CentOS7编译安装MySQL5.7之后安装mysql-devel出错解决方案
- linux 64位 编译动态库时会出错的解决方案
- [cocos2d-x3.0]Xcode 升级到5.1后,cocos2d-x3.0 编译64bit出错解决方案
- Python学习笔记·Sublime text3 配置Python编译环境时遇到的问题及解决方案
- Cocos2d-x 3.2编译生成Android程序出错的解决方案:c++_static报错
- PHP安装问题:编译安装php5.2.0时出错解决方案
- 编译qtopia时出错解决方案
- 编译QT4.8.2完成之后,mingw32-make install时出错的解决方案
- 添加第三方库时候,64位机器编译出错解决方案
- protobuf编译出错的解决方案(iOS,OSX)
- 【Qt5 for VS】关于 VS2013+qt5.4.0 QSerialPort 编译时提示找不到外部符号,连接出错的解决方案【转载】
- 编译Caffe出错,解决方案记录
- 在switch中的case语句中声明变量编译出错的解决方案