Component: node. Severity: warning.
Collector prerequisites: deps.
The project's declared package manager, selected runner or lockfile families disagree.
Evidence required: package.json with observed supported lockfiles and a declared/explicit manager disagreement, or conflicting lockfile families.
Manual steps:
- Choose the intended package manager and version, then reconcile the declaration and lockfiles after reviewing project policy.
Verify with envdoctor diagnose --rule ENV009.
Limitations:
- packageManager declarations need an exact numeric npm/pnpm/yarn/bun version; --package-manager explicitly selects a runner.
- Installed npm alone never establishes selection. Unknown versions do not establish a version mismatch.
- npm-shrinkwrap.json and package-lock.json are one family; bun.lock and bun.lockb are one family.
- Conflicting families are identified separately from runner/declaration/version disagreement. Lockfile contents are not executed.
No command is executed by this rule. Evidence comes only from the snapshot. Failed prerequisite collectors disable the rule. Positive, negative and edge fixtures cover Windows, Linux and macOS; platform exclusions are listed above.
Documentation: https://github.com/shellghostt/envdoctor/blob/main/docs/rules/ENV009.md.