首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Meteor Meteorite npm版本锁

Meteor Meteorite npm版本锁
EN

Stack Overflow用户
提问于 2013-10-14 16:08:12
回答 3查看 2.7K关注 0票数 4

我已经更新了上一个版本的流星,这个版本不能与流星一起工作。

这里是我的"sudo mrt“日志

代码语言:javascript
复制
=> 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.

我不知道错误是从哪里来的。

有什么想法吗?

谢谢!

EN

回答 3

Stack Overflow用户

发布于 2013-10-14 17:00:28

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

票数 10
EN

Stack Overflow用户

发布于 2013-10-18 09:51:36

根据文档,您不应该以sudo身份运行mrt。

票数 2
EN

Stack Overflow用户

发布于 2013-10-16 12:55:54

您是否也更新了节点

您可能需要在根级别更新节点安装

使用sudo npm update

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19355883

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档