Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix: (node:12364) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated

ng serve -o shows the following error message:

- Generating browser application bundles...(node:12364) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created) 

Than the terminal shows: \ Generating browser application bundles (phase: emitting)...

But the browser never opening, it seems VSC is in an endless loop.

What can I do to fix this problem?

like image 815
Christoph1972 Avatar asked May 12 '21 12:05

Christoph1972


2 Answers

Version compatibility could be the issue. Downgrading node js version from 16.8.0 to 14.17.5 resolved my issue.

like image 151
RaGib Noor Avatar answered Sep 16 '22 11:09

RaGib Noor


I fixed the endless loop. I entered a network path to the outputPath in angular.json. That seems to be not possible.

The error message is still present.

- Generating browser application bundles...(node:12364) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created) 
like image 45
Christoph1972 Avatar answered Sep 16 '22 11:09

Christoph1972