【发布时间】:2013-11-09 02:18:57
【问题描述】:
我正在使用流星并运行 npm install request 以访问该库。一切似乎都安装正确,但是当我运行流星服务器时,我收到以下错误。有什么关于为什么会这样或如何解决它的消息吗?谢谢。
While building the application:
node_modules/request/node_modules/node-uuid/test/test.html:1: bad formatting in HTML template
node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/run.js:1:15: Unexpected token ILLEGAL
node_modules/request/node_modules/form-data/node_modules/combined-stream/test/run.js:1:15: Unexpected token ILLEGAL
供参考:
test.html
<html>
<head>
<style>
div {
font-family: monospace;
font-size: 8pt;
}
div.log {color: #444;}
div.warn {color: #550;}
div.error {color: #800; font-weight: bold;}
</style>
<script src="../uuid.js"></script>
</head>
<body>
<script src="./test.js"></script>
</body>
</html>
run.js(相同)
#!/usr/bin/env node
var far = require('far').create();
far.add(__dirname);
far.include(/test-.*\.js$/);
far.execute();
【问题讨论】:
-
test.html 长什么样子?
-
在 cmets 中添加。
-
如果删除
style和script标签会怎样?你为什么要添加这样的脚本呢?你应该把它留给 Meteor。