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.

[DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated when Browsersync: Connected

See original GitHub issue

Issue details

As soon as I connect to the server (localhost:3000) I received the following message: (node:37943) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

Steps to reproduce/test case

Use node, npm and gulp as indicated below. All the tasks load properly, but when connected with browser-sync at localhost:3000 node sends the DEP0066 message and it stops working.

Please specify which version of Browsersync, node and npm you’re running

  • Browsersync [ 2.26.5 ]
  • Node [ 12.1.0 ]
  • Npm [ 6.9.0 ]

Affected platforms

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • Gulp
  • Grunt
  • CLI

for all other use-cases, (gulp, grunt etc), please show us exactly how you’re using Browsersync

function browsersync(){
  browserSync.init( {
    proxy: projectURL,
    open: false,
    injectChanges: true,
  } );
};

gulp.task( 'default', gulp.series(styles, php, phpDIST, vendorsJS, customJS, images, browsersync, watchTask));

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:20
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

13reactions
suhailkccommented, Jun 10, 2019

Fixed by updating “browser-sync”: “^2.26.7”.

8reactions
kevinmamaqicommented, May 15, 2019

Hey @suhailkc I had to downgrade to node 10.15.3 LTS to solve it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix (node:12388) [DEP0066] DeprecationWarning ...
When I started project I got warning from node ([DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated) every time. But ...
Read more >
DEP0066, Node js deprecation warning, How to check ...
(node:37943) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated. Steps to reproduce/test case. Use node, npm and gulp as indicated ...
Read more >
Answered: how to fix this problem in node js - Bartleby
Solution for how to fix this problem in node js ? (node:41392) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated (Use `node…
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