Search code examples
node.jsdependencieswarningssuppress-warnings

Suppress Node "Conditonal experts is an experimental feature"


These days, several of my packages frequently spew out this message:

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

How can I suppress it?

(I know what it means, roughly. It's coming from some dependency somewhere which I'm unlikely to be able to do anything about. I just want to tell Node to stop warning me about this particular issue.)


Solution

  • Pretty sure you can't suppress individual warnings, but if you set NODE_NO_WARNINGS in the environment, it will suppress all warnings emitted by the node executable.