4

I have update Meteor on the last version and this version don't work with Meteorite.

Here my "sudo mrt" logs

=> Errors prevented startup:

While building the application:
node_modules/meteorite/node_modules/ddp/node_modules/ws/examples/fileapi/public/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/ws/examples/serverstats-express_3/public/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/ws/examples/serverstats/public/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/prompt/node_modules/winston/node_modules/pkginfo/docs/pkginfo.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/meteor-ejson/node_modules/underscore/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/prompt/node_modules/pkginfo/docs/pkginfo.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/prompt/docs/prompt.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/colors/example.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/optimist/test/_/argv.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/test/_/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/bool.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/boolean_double.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/boolean_single.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/default_hash.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/default_singles.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/divide.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count_options.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count_wrap.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/nonopt.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/reflect.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/short.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/string.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/xup.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/bin/mrt.js:1:15: Unexpected token ILLEGAL
node_modules/rimraf/bin.js:1:15: Unexpected token ILLEGAL

=> Your application has errors. Waiting for file change.

I don't know where the error come from.

Any idea?

Thank you !

4

3 回答 3

10

问题已解决,只需删除目录节点模块即可修复所有问题。rm -rf 节点模块

于 2013-10-14T09:00:27.770 回答
2

根据文档,您不应将 mrt 作为 sudo 运行。

于 2013-10-18T01:51:35.763 回答
0

您是否也更新了节点

您可能必须在根级别更新节点安装

利用sudo npm update

然后重新运行sudo mrt,看看这是否解决了问题

于 2013-10-16T04:55:53.950 回答