当我为我的 Android 应用程序创建管理面板时,我收到了这种类型的弃用警告。
这是它的代码-
DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
此错误已显示在 CMD 中。
我已经尝试过放置
node --trace-deprecation ...
,但没有给出任何结果
我正在使用
express
。我更新了 node.js
、npm
和 pm2
的所有项目版本。但我使用pm2低版本来部署我的项目。我看到了这条消息。当我使用新版本的 pm2 部署我的项目时,它解决了。
所以有一些东西根据其他工具版本运行低版本。找到您的低版本工具并更新它。