Node.js 18 + npm 10: Works on 18.17.0+, Fails on Earlier Patches
Node.js 18+npm 10
npm 10 requires Node ≥ 18.17.0 exactly. Node.js 18 patch releases before 18.17.0 (e.g. 18.0 through 18.16.x) do not satisfy this requirement and will produce an EBADENGINE error when installing npm 10. Node.js 18.17.0 was the LTS release that aligned with npm 10. Check your Node version with `node -v` before upgrading.
Minimum version required: Node.js 18.17.0
Workarounds & Fixes
Run `node -v` to confirm you are on ≥ 18.17.0 before running `npm install -g npm@10`
If on Node 18.x < 18.17.0, upgrade Node to 18.17.0 or later first