Medic.Checks.NPM (Medic v0.2.0) View Source

Checks that NPM exists, implicitly checking for NodeJS.

Examples

{Check.NPM, :exists?}
{Check.NPM, :require_minimum_version, ["7.8.0"]}
{Check.NPM, :installed?}

Link to this section Summary

Functions

Checks that the packages declared in assets/package-lock.json are all installed.

Checks that npm install has been run at least once.

Checks that there is an npm executable installed locally.

Checks the installed version of npm is greater than or equal to the declared version.

Link to this section Functions

Link to this function

all_packages_installed?()

View Source

Checks that the packages declared in assets/package-lock.json are all installed.

Link to this function

any_packages_installed?()

View Source

Checks that npm install has been run at least once.

Checks that there is an npm executable installed locally.

Link to this function

require_minimum_version(minimum)

View Source

Checks the installed version of npm is greater than or equal to the declared version.