Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 5.8 KB

File metadata and controls

50 lines (32 loc) · 5.8 KB

Heroku Cloud Native npm Engine Buildpack

CI Registry

Heroku's official Cloud Native Buildpack for installing a specific version of npm.

How it works

The buildpack will pass detection if:

  • A package.json file is found at the root of the application source.
  • The package.json file contains an engines entry for npm that specifies a version range.

Step 1: Resolve npm version

The npm version range specified in package.json will be used to determine an exact version of npm to install.

Note

This list of supported npm versions can be found in the inventory file included with this buildpack.

Step 2: Install npm

Once a valid npm version is determined, npm will be installed and its commands will be available on the path.

Build Plan

Requires

Name Description
node To install npm a Node.js runtime is required. It can be provided by the heroku/nodejs-engine buildpack.
npm To install a different version of npm the default npm package manager that comes with Node.js is used. It can be provided by the heroku/nodejs-engine.

Provides

Name Description
npm Allows other buildpacks that require npm tooling to depend on this buildpack.

License

See LICENSE file.