文章内容

2023/10/26 23:38:18,作 者: 黄兵

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

后台管理程序使用的是 Angular,Node.js 版本是 16.17.0,构建的时候出现了如下警告:

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

解决方案:

我们可以将 Node.js 版本由 16.17.0 降至 14.21.3 版本解决这个问题。

更改 WebStrom 中的 Node.js 版本:

正差构建已经不会出现上面警告:


参考资料:

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


其它相关推荐:

1、postcss-loader.js doesn't exist

2、tsconfig.json files 参数解释

3、css-loader.js doesn't exist

4、ts-loader.js doesn't exist

5、nodejs+express搭建javascript在线IDE Ⅱ

分享到:

发表评论

评论列表