Huh, I already got the new behavior last time I tried this, and I didn't manually enable it. I wonder why.
You will get the warnings but default npm in Node will still run the scripts.
npm 12 has the relevant breaking changes: https://github.blog/changelog/2026-06-09-upcoming-breaking-c...
Node 27 will likely ship with it:
https://github.com/nodejs/Release/issues/1161
https://github.com/npm/cli/issues/9997
You will get the warnings but default npm in Node will still run the scripts.
npm 12 has the relevant breaking changes: https://github.blog/changelog/2026-06-09-upcoming-breaking-c...
Node 27 will likely ship with it:
https://github.com/nodejs/Release/issues/1161
https://github.com/npm/cli/issues/9997