我使用流星,我運行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。 –