部署Meteor 1.3,在AWS上反应应用程序

时间:2016-06-21 03:23:03

标签: amazon-web-services meteor docker

我正在尝试使用 https://github.com/arunoda/meteor-up/tree/mupx 部署 https://www.meteor.com/tutorials/react/creating-an-app 在亚马逊AWS上。一切顺利,直到我到达 “mupx deploy”。


    $ mupx init
    $ mupx setup
    (node:524) fs: re-evaluating native module sources is not supported. 
    If you are using the graceful-fs module, 
    please update it to a more recent version.


    Started TaskList: Setup (linux)
    [ec2-50-112-9-82.us-west-2.compute.amazonaws.com] - Installing Docker
    [ec2-50-112-9-82.us-west-2.compute.amazonaws.com] - Installing Docker: SUCCESS
    [ec2-50-112-9-82.us-west-2.compute.amazonaws.com] - Setting up Environment
    [ec2-50-112-9-82.us-west-2.compute.amazonaws.com] - Setting up Environment: SUCCESS
    [ec2-50-112-9-82.us-west-2.compute.amazonaws.com] - Copying MongoDB configuration
    [ec2-50-112-9-82.us-west-2.compute.amazonaws.com] - Copying MongoDB configuration: SUCCESS
    [ec2-50-112-9-82.us-west-2.compute.amazonaws.com] - Installing MongoDB
    [ec2-50-112-9-82.us-west-2.compute.amazonaws.com] - Installing MongoDB: SUCCESS



    $ mupx deploy


    Meteor app path    : /Users/peter/Desktop/meteor-com/simple-todos-react
    Using buildOptions : {"debug":true,"executable":"meteor"}
    buffer.js:106
          throw new Error(
          ^

    Error: If encoding is specified then the first argument must be a string
        at new Buffer (buffer.js:106:13)
        at Readable. (/usr/local/lib/node_modules/mupx/node_modules/archiver/lib/util/index.js:32:15)
        at emitNone (events.js:91:20)
        at Readable.emit (events.js:185:7)
        at endReadableNT (_stream_readable.js:926:12)
        at _combinedTickCallback (internal/process/next_tick.js:74:11)
        at process._tickCallback (internal/process/next_tick.js:98:9)

1 个答案:

答案 0 :(得分:0)

此错误与Node.js版本6 *有关。降级为< 6.0应该解决它。我正在使用5.1.1进行AWS部署,并且它可以完美地运行。 NVM是管理节点版本的绝佳工具。