美文网首页
meteor部署时 mupx deploy 出现的错误

meteor部署时 mupx deploy 出现的错误

作者: sosocom | 来源:发表于2016-11-01 17:35 被阅读74次

    谁能告诉我执行 mupx deploy时,出现这个错误是什么意思,怎么处理

    $ mupx deploy

    Meteor Up: Production Quality Meteor Deployments

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

    Configuration file : mup.json

    Settings file: settings.json

    “ CheckoutKadira!

    It's the best way to monitor performance of your app.

    Visit:https://kadira.io/mup”

    Meteor app path: /Users/sosocom/Documents/Workspace/meteor/nfnews

    Using buildOptions : {}

    buffer.js:70

    throw new Error(

    ^

    Error: If encoding is specified then the first argument must be a string

    at new Buffer (buffer.js:70: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:974:12)

    at _combinedTickCallback (internal/process/next_tick.js:74:11)

    at process._tickCallback (internal/process/next_tick.js:98:9)

    这是由于NODE版本最新的本身程序有一个小bug

    找到这个文件打开

    /usr/local/lib/node_modules/mupx/node_modules/archiver/lib/util/index.js

    里面内容的32行,内容修改一下

    // var buf = new Buffer(size, 'utf8');  这是原来的,注释掉,换成下面的

    var buf = new Buffer(size.toString(), 'utf8');

    改好保存后,在运行项目部署命令:mupx deploy

    终于成功了吧。。。见提示信息

    相关文章

      网友评论

          本文标题:meteor部署时 mupx deploy 出现的错误

          本文链接:https://www.haomeiwen.com/subject/tvimuttx.html