Heroku's official Cloud Native Buildpack for installing a specific version of npm
.
The buildpack will pass detection if:
- A
package.json
file is found at the root of the application source. - The
package.json
file contains anengines
entry fornpm
that specifies a version range.
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.
Once a valid npm version is determined, npm will be installed and its commands will be available on the path.
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 . |
Name | Description |
---|---|
npm |
Allows other buildpacks that require npm tooling to depend on this buildpack. |
See LICENSE file.