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


#1

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!


#2

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


#3

We solved this problem by updating node at server.


#4

Did you update to the latest stable version?


#5

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.