yargs正在抛出实验警告

问题描述

我正在编写一个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上进行了验证