Environment checks for npm_ex.
Detects available Node.js installations, npm configuration, and checks compatibility with package engine requirements.
Summary
Functions
Check if a package's engine requirements are met.
Check if Node.js is available on the system PATH.
Get a summary of the current environment.
Functions
Check if a package's engine requirements are met.
Compares the engines field from package.json against the
currently available Node.js version.
@spec node_version() :: {:ok, String.t()} | :not_found
Check if Node.js is available on the system PATH.
Returns {:ok, version} or :not_found.
@spec summary() :: map()
Get a summary of the current environment.
Returns a map with system info relevant to npm operations.