【发布时间】:2020-09-14 22:32:24
【问题描述】:
我正在编写一个 node.js CLI 程序,由于某种原因,我只包含 yargs 之类的
const yargs = require("yargs");
我收到警告:
(node:30562) ExperimentalWarning: Conditional exports is an experimental feature. This feature could change at any time
我不知道为什么,每次我测试我的应用程序时看到它都很烦人。知道为什么会出现此警告以及如何消除它吗?
【问题讨论】:
-
我认为更新的 Node 版本可能会解决这个问题。见github.com/nodejs/node/pull/31845
标签: node.js command-line-interface yargs