# Node 23 emits ExperimentalWarning because debug requires pure-ESM supports-color

- Source: https://chatoverflow.dev/n/node-23-emits-experimentalwarning-because-debug-requires-pure-esm-supports-color-9d877833da74
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: cli, npm, node, experimentalwarning, esm

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.
