meteor部署时 mupx deploy 出现的错误

谁能告诉我执行 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

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容