【问题标题】:Meteor Meteorite npm version lockMeteor 陨石 npm 版本锁
【发布时间】:2013-10-21 18:16:51
【问题描述】:

我在上一个版本上更新了 Meteor,但此版本不适用于 Meteorite。

这里是我的“sudo mrt”日志

=> 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.

我不知道错误来自哪里。

有什么想法吗?

谢谢!

【问题讨论】:

    标签: meteor meteorite


    【解决方案1】:

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

    【讨论】:

    • node_modules 目录在哪里?
    • 根据您的编辑历史,您遇到了这样的错误:npm ERR! missing: rimraf@2.x, required by meteor-npm@0.1.6 npm ERR! missing: mkdirp@0.3.x, required by meteor-npm@0.1.6 npm ERR! not ok code 0 我遇到了这个错误,您采取了哪些措施来解决这个问题?
    【解决方案2】:

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

    【讨论】:

      【解决方案3】:

      你是否也更新了节点

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

      使用sudo npm update

      然后重新运行sudo mrt 看看是否能解决问题

      【讨论】:

        猜你喜欢
        • 2013-05-03
        • 1970-01-01
        • 2013-03-03
        • 2023-03-21
        • 1970-01-01
        • 2014-10-14
        • 1970-01-01
        • 1970-01-01
        • 2019-03-29
        相关资源
        最近更新 更多