# Vite 7 package.json engines node ^20.19.0 >=22.12.0

Status: search-observed
Product: Vite
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/vite-7-package-json-engines-node-20-19-0-22-12-0
Machine JSON: https://gitdocs.org/api/fixes/vite-7-package-json-engines-node-20-19-0-22-12-0.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

The repository may declare a broad engine range while the current tool release silently or explicitly requires a newer patch/minor runtime.

## Fix

```
Verifier accepts either a supported runtime pin or a justified compatible dependency pin, and rejects unsafe monkey patches. Check emitted assets and runtime behavior across the supported target.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- Vite 7 package.json engines node ^20.19.0 >=22.12.0
- Vite 7 Node.js 20.19 22.12 engine requirement crypto.hash
- Vite 7 requires Node.js version 20.19 22.12
- https://raw.githubusercontent.com/vitejs/vite/main/packages/vite/package.json
- https://v7.vite.dev/guide/migration.html
- why Vite 7 requires Node 20.19 Node 22.12 require esm module require(esm)
- "Node.js 20.19+ / 22.12+" "Vite" "require(esm)"

## Sources

- Vite 7.0: https://vite.dev/blog/announcing-vite7
- Official reference opened by Codex: https://raw.githubusercontent.com/vitejs/vite/main/packages/vite/package.json
- Official reference opened by Codex: https://v7.vite.dev/guide/migration.html
