【问题标题】:Verifying deploy failed: "SyntaxError: Unexpected" while Mup builds to NGINX?验证部署失败:“SyntaxError:Unexpected”,而 Mup 构建到 NGINX?
【发布时间】:2018-03-29 08:06:59
【问题描述】:

试图通过 mup 构建一个流星应用程序到 digitalOceans droplet,它在 Nginx 上运行。

在这个过程中,我总是叠加部署验证。

nodejs & node 版本:v4.8.4

npm 版本:2.15.11

错误:

x Verifying Deployment: FAILED

    -----------------------------------STDERR-----------------------------------
    WARN package.json meteor-dev-bundle@0.0.0 No description
    npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
    npm WARN package.json meteor-dev-bundle@0.0.0 No README data
    npm WARN cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
    => Starting meteor app on port:80

    /bundle/bundle/programs/server/mini-files.js:82
    const unicodeNormalizePath = (path) => {
                                         ^
    SyntaxError: Unexpected token >
        at Module._compile (module.js:439:25)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Module.require (module.js:364:17)
        at require (module.js:380:17)
        at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)

    => Redeploying previous version of the app

    -----------------------------------STDOUT-----------------------------------

    To see more logs type 'mup logs --tail=100'

    ----------------------------------------------------------------------------

这里是日志:https://pastebin.com/zs8FG86V

谢谢!

【问题讨论】:

  • Node v4.8.4 不支持某些 ES2015 功能。你有安装ecmascriptmeteor 包吗?
  • @MasterAM 是的,ecmascript@0.8.1。我应该删除它吗?
  • 可能与this issue有关
  • @MasterAM 我猜here 是 ssl 配置过程的问题。

标签: javascript node.js nginx meteor mup


【解决方案1】:

通过将 mup.js 文件中的 docker 映像从 'kadirahq/meteord' 更改为 'abernix/meteord:base' 来修复它。

【讨论】:

    猜你喜欢
    • 2017-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-11
    • 2023-03-30
    • 1970-01-01
    • 1970-01-01
    • 2011-07-21
    相关资源
    最近更新 更多