Node Js 中的弃用警告

问题描述 投票:0回答:1

当我为我的 Android 应用程序创建管理面板时,我收到了这种类型的弃用警告


这是它的代码-

 DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)

此错误已显示在 CMD 中。

我已经尝试过放置

node --trace-deprecation ...
,但没有给出任何结果

html node.js deprecation-warning
1个回答
0
投票

我正在使用

express
。我更新了
node.js
npm
pm2
的所有项目版本。但我使用pm2低版本来部署我的项目。我看到了这条消息。当我使用新版本的 pm2 部署我的项目时,它解决了。 所以有一些东西根据其他工具版本运行低版本。找到您的低版本工具并更新它。

© www.soinside.com 2019 - 2024. All rights reserved.