2015-06-10 69 views
0

部署时,我试着键入$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

+0

您必须使用过时的工具版本,尝试更新它:'sudo npm update -g modulus'。 – saimeunt

+0

@saimeunt我试过了,它仍然给出了同样的错误:(。 – jeffrey

回答

0

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