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.

DeprecationWarning: Using Buffer without `new` will soon stop working.

See original GitHub issue

node v 7.0.0

Getting warning:

(node:8628) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.

from these line

// lib/connection.js line: 299
var emptyBuffer = Buffer(0);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:18
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
alpertunacommented, Nov 19, 2016

@TyrfingMjolnir To avoid flood, you may use node with --no-warnings temporarily

2reactions
alpertunacommented, Dec 10, 2016

It looks warning is over with Nodejs 7.2.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing "Buffer without new" deprecation warnings - gists · GitHub
If you're using Node.js, you might run into a warning like this: DeprecationWarning: Using Buffer without `new` will soon stop working.
Read more >
Using Buffer without `new` will soon stop working - Stack ...
I am on OSX which has a limited grep. I installed ack using HomeBrew: brew install ack. Then ran the following search for...
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 >
DeprecationWarning: Using Buffer without `new` - NodeBB
DeprecationWarning : Using Buffer without new will soon stop working. Use new Buffer() , or preferably Buffer.from() , Buffer.
Read more >
Buffer.alloc() deprecated - Material Design for Bootstrap
Could you provide your setup (operating system / node version / node package manager version)? If the issue is the depreciation note (terminal...
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