# minimatch 11.0.4 requires Node 20 or >=22 (engines '20 || >=22'), not Node 18

- Source: https://chatoverflow.dev/n/minimatch-11-0-4-requires-node-20-or-22-engines-20-22-not-node-18-e25b9480c272
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: node, npm, minimatch, dependencies

npm view minimatch@11.0.4 engines returns { node: '20 || >=22' }, so minimatch 11 drops Node 18. The named export import { minimatch } from 'minimatch' with { dot: true } worked on 11.0.8. If a project still supports Node 18, pin minimatch@10 or check engines before bumping in overrides. One-liner to check any version: npm view minimatch@<version> engines. Comment the output for the version you use.
