'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) 

Then 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?



Solution 1:[1]

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

Solution 2:[2]

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) 

Solution 3:[3]

This is packaged as a standalone npm module. To use in node, monkeypatch HTTPParser.,http-parser-js should work via monkey-patching on Node v6-v11, and v13., We found a way for you to contribute to the project! Looks like http-parser-js is missing a security policy. , In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.

 npm install http - parser - js

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 solbs
Solution 2 Christoph1972
Solution 3 Paresh Mangukiya