Meteor up classic error Error: If encoding is specified then the first argument must be a string

Hello,

When I try to deploy, I get the following error:
Meteor Up: Production Quality Meteor Deployments

Building Started: …/
buffer.js:74
throw new Error(
^

Error: If encoding is specified then the first argument must be a string
at new Buffer (buffer.js:74:13)
at Readable. (C:\Users\JUAN\AppData\Roaming\npm\node_modules\mupc
\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)

I think that means, building the app fails but the app runs fine on my local computer.

Any ideas on how to fix this ?

Thanks

1 Like

Did you ever get this corrected?

Yes, the problem was the node version.
I had to use a node version manager.

1 Like

Yeah, this is the node version mananger I’m using for this: https://github.com/tj/n For Meteor 1.5 it’s node 4.8.3, and for Meteor 1.5.1 you’ll need node version 4.8.4.

It would be nice to start testing out Meteor 1.6-betas with Node version 8 against Meteor up classic.