我正在尝试安装
this plug-in
所以我跑:
流星创造测试
cd测试
npm安装haml-coffee-meteor
流星
我得到以下内容:
$meteor
[[[[[ ~/test ]]]]]
No dependency info in bundle. Filesystem monitoring disabled.
=> Errors prevented startup:
Exception while bundling application:
Error: Parse error - line 1, file /Users/xaxxon/test/node_modules/haml-coffee-meteor/spec/suites/templates/coffee/attributes.html
<div id='one'>
at parseError (/Users/xaxxon/.meteor/packages/templating/88d1cd8ec8579600ff26b8a0ed7bf23295887674/html_scanner.js:23:14)
at Object.html_scanner.scan (/Users/xaxxon/.meteor/packages/templating/88d1cd8ec8579600ff26b8a0ed7bf23295887674/html_scanner.js:36:15)
at /Users/xaxxon/.meteor/packages/templating/88d1cd8ec8579600ff26b8a0ed7bf23295887674/package.js:44:32
at _.extend.add_file (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:213:7)
at self.api.add_files (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:126:16)
at Array.forEach (native)
at Function._.each._.forEach (/Users/xaxxon/.meteor/tools/cc18dfef9e/lib/node_modules/underscore/underscore.js:78:11)
at self.api.add_files (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:125:11)
at Array.forEach (native)
at Function._.each._.forEach (/Users/xaxxon/.meteor/tools/cc18dfef9e/lib/node_modules/underscore/underscore.js:78:11)
at Object.self.api.add_files (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:124:9)
at _.extend.init_from_app_dir [as on_use_handler] (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/packages.js:246:11)
at _.extend.use (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:464:11)
at Object.exports.bundle (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/bundler.js:873:12)
at /Users/xaxxon/.meteor/tools/cc18dfef9e/tools/run.js:697:26
at exports.inFiber (/Users/xaxxon/.meteor/tools/cc18dfef9e/tools/fiber-helpers.js:24:12)
Please fix the problem and restart.
我真的不知道发生了什么,但如果我不安装haml-coffee-meteor软件包,它会按预期工作.我想也许这个软件包试图改变.html文件的处理方式,而且这个单元测试期望传统的html是可解析的,但是现在系统期待haml并导致测试中断?但我甚至不确定这是一个单元测试,所以我真的不知道如何继续.
最佳答案 您可以使用具有haml / jade语法的
Blade,并且可以从大气中轻松下载.