我使用流星,我运行NPM安装请求来访问该库。一切似乎安装正确,但当我运行流星服务器,然后我得到以下错误。有没有关于这是为什么或如何解决它的任何文字?谢谢。流星,NPM和请求
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的外观如何? – enducat
添加评论。 – user592419
如果删除'style'和'script'标签会怎么样?为什么你要添加这些脚本呢?你应该把它留给Meteor。 –