the "engines" field in package.json Explained
What the "engines" field in package.json does, with an example.
Published November 12, 2026
the "engines" field in package.json declares which Node.js (and npm) versions a package is compatible with.
Key points
- Part of the standard npm CLI that ships with Node.js
Example
"engines": {
"node": ">=18.0.0"
}