Inspect package runtime requirements

Read-only
What do risk levels mean?
Read-only
Inspects state without changing anything.
Low risk
Reversible with a routine follow-up command.
Medium risk
Changes state; undo path documented.
Destructive
Deletes or overwrites; confirmation required.

Reads the package engine declarations without installing dependencies or changing files, so you can compare them with the active runtime.

nodenpmengines

Commands

Show the Node.js and package-manager versions declared by the project

npm pkg get engines

Verification

npm pkg get engines

The declared engine ranges are printed, or an empty object appears when none are set.

Undo

Not undoable

This recipe only reads package metadata and changes nothing.

Pitfalls

  • Engine ranges are advisory unless the package manager or project configuration enforces them.

Related