question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Buffer.alloc is not a function

See original GitHub issue

Ran cost-of-modules in a node project directory. Got this error:

screen shot 2017-05-28 at 3 48 21 pm

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
siddharthkpcommented, May 28, 2017

thanks @alshakero!

side thought: should we add a warning for unsupported node versions instead of just crashing?

In my head, it’s a npm package that can be imported and decides based on engine in package.json

1reaction
umarashfaqcommented, May 28, 2017

I see, thanks for your prompt response.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Buffer.alloc is not a function - node.js - Stack Overflow
The new Buffer API is only available in v5.10.0+, so you'll need to upgrade to use it. If you want to view the...
Read more >
Node, 5.1.18-prerelease: TypeError: Buffer.alloc is not a function
I think there were some changes to the Buffer module but that was a while ago. Are you using an older version of...
Read more >
TypeError: Buffer.alloc is not a function on install #865 - GitHub
Hi, I had sharp working awesome then tried another install in another directory which choked. So I upgraded npm and nodejs but same...
Read more >
Buffer.alloc is not a function] Unable to load plugin meteor - help
Running mup deploy I got this error (I'm no t using Buffer in my app code): [TypeError: Buffer.alloc is not a function] Unable...
Read more >
Porting to the Buffer.from() / Buffer.alloc() API - Node.js
This guide explains how to migrate to safe Buffer constructor methods. The migration fixes the following deprecation warning: The Buffer() and new Buffer() ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found