yargs 正在抛出一个 ExperimentalWarning

yargs is throwing a ExperimentalWarning

我正在编写一个 node.js CLI 程序,出于某种原因,我只包含 yargs 之类的

const yargs = require("yargs");

我收到警告:

(node:30562) ExperimentalWarning: Conditional exports is an experimental feature. This feature could change at any time

我不确定为什么,每次我测试我的应用程序时看到它都很烦人。知道为什么会出现此警告以及如何消除它吗?

运行 进入同样的事情并在这里询问 https://github.com/yargs/yargs/issues/1763

编辑:更新您的节点版本。当你升级时它是固定的。我在节点上验证了 --version v14.11.0