我正在编写一个node.js CLI程序,由于某种原因,当我只包含yargs时,例如
const yargs = require("yargs");我得到一个警告:
(node:30562) ExperimentalWarning: Conditional exports is an experimental feature. This feature could change at any time我不确定为什么,每次我测试我的应用程序时都会看到它,这是相当烦人的。你知道为什么会出现这个警告吗?如何摆脱它?
发布于 2020-09-23 01:29:45
遇到同样的事情,问这里https://github.com/yargs/yargs/issues/1763
编辑:更新您的节点版本。升级时会修复此问题。我在节点上验证--版本v14.11.0
https://stackoverflow.com/questions/63892611
复制相似问题