【问题标题】:Meteor app deploying with Modulus使用 Modulus 部署 Meteor 应用程序
【发布时间】:2015-06-10 17:59:14
【问题描述】:

当我尝试从我的应用程序目录中将$modulus deploy 输入终端时遇到此错误:

Determining Meteor version...
Meteor version: 1.1.0.2
Bundling Meteor App...
undefined
[Error] Error: Command failed: /bin/sh -c cd /Users/xx/Projects/Project1 && meteor bundle   --directory /Users/xx/Projects/Project1/.demeteorized
This command has been deprecated in favor of 'meteor build', which allows you
to build for multiple platforms and outputs a directory instead of a single
tarball. See 'meteor help build'for more information.


WARNING: The output directory is under your source tree.

Errors prevented bundling:
While building the application:
client/Project1.js:138:29: Unexpected token =

我得到与$demeteorizer 相同的结果。它适用于旧版本的应用程序,然后我在新分支中添加了一些功能,合并,现在我收到了这个错误。

已经尝试过:
sudo npm update -g modulus

【问题讨论】:

  • 您使用的工具一定是过时版本,请尝试更新它:sudo npm update -g modulus
  • @saimeunt 我试过了,它仍然给出同样的错误:( .

标签: meteor token modulus demeteorizer


【解决方案1】:

原来这是我的代码中的一个实际错误。我在某处有一个额外的右花括号。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-11-08
    • 1970-01-01
    • 1970-01-01
    • 2016-01-21
    • 2015-01-01
    • 2017-05-30
    • 1970-01-01
    • 2017-04-26
    相关资源
    最近更新 更多