fix: downgrade supports-color to same version as chalk#7887
fix: downgrade supports-color to same version as chalk#7887mantoni wants to merge 1 commit intonpm:latestfrom
Conversation
|
This was fixed in nodejs/node#55085, node will no longer warn about this behavior. This is happening because This has nothing to do with There is also an issue in the debug repo tracking this |
|
@wraithgar that's incorrect - that node PR is what caused the warning (in node 23), by not requiring the flag to allow requiring of ESM. |
When using the latest npm cli on node
v23.1.0, all commands print this warning:This happens because npm cli has a direct dependency on
supports-color@v9, whilechalkanddebugdepend onv7.x. Downgradingsupports-colortov7.xfixes this. Whilev8.xmight also work, it makes sense to depend on the same version as chalk, according to this comment inlib/utils/display.js:I'm not sure why so many files have automatically changed. Let me know if I'm holding it wrong.