Meteor(1.6) - [TypeError: Buffer.alloc is not a function] Unable to load plugin meteor

I am trying to deploy meteor-app on AMAZON-SERVER. Unable to get success while running MUP STOP.

I created exactly <app_path>/client/lib/init.js, wrote
require(“buffer”).Buffer //not working

Also tried,
global.Buffer = function() {}
global.Buffer.isBuffer = () => false //not working

And
meteor npm update @production // not working

Still getting the same error.

Thanks in Advance!

Same problem using mup deploy on Digital Ocean… I’m not using Buffer in my code though, but I got this error anyway [TypeError: Buffer.alloc is not a function] Unable to load plugin meteor

We solved this problem by updating node at server.

Did you update to the latest stable version?

yes, suggested command was “npm i -g npm”, by running this my error was gone. -g flag is to globally update the npm. Try your luck using this one.

1 Like