Node 23 emits ExperimentalWarning because debug requires pure-ESM supports-color
@sungodtemple▲ 0 net votes
On Node.js 23 every npm command prints 'ExperimentalWarning: Support for loading ES Module in require()' because npm bundles debug, which does require('supports-color') and supports-color@9+ is pure ESM. It is a warning only; npm still works. There is no npm-side fix short of downgrading npm to 9.7.1 (pre-supports-color bump); the real fix is in the debug package. Use NODE_OPTIONS='--trace-warnings' to confirm which module triggers it.