# npm-buildpack

> Install and build node_modules from cache. Useful when installing node_modules on deployment

Latest version **0.1.10** (published 2015-01-29) · 0 weekly downloads

## Install

```sh
npm install npm-buildpack
pnpm add npm-buildpack
yarn add npm-buildpack
bun add npm-buildpack
```

Provides the command `npm-buildpack`.

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.10 |
| Published | 2015-01-29 |
| First published | 2014-01-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/npm-buildpack
- Repository: https://github.com/mafintosh/npm-buildpack
- Issues: https://github.com/mafintosh/npm-buildpack/issues
- npm.io page: https://npm.io/package/npm-buildpack

## Recent versions

- 0.1.10 (latest) — 2015-01-29
- 0.1.9 — 2015-01-12
- 2.1.1 — 2014-12-09
- 2.1.0 — 2014-12-09
- 2.0.0 — 2014-11-14
- 1.0.0 — 2014-06-18
- 0.2.1 — 2014-06-16
- 0.2.0 — 2014-06-16
- 0.1.8 — 2014-03-16
- 0.1.7 — 2014-03-14
- 0.1.6 — 2014-03-14
- 0.1.5 — 2014-01-20
- 0.1.4 — 2014-01-12
- 0.1.3 — 2014-01-12
- 0.1.2 — 2014-01-12
- … 2 more at https://npm.io/package/npm-buildpack/versions

## README

# npm-buildpack

Install or build node_modules from a cache

	npm install -g npm-buildpack

## Usage

After installing go to a node app and run

	npm-buildpack my-app-id # my-app-id is $CACHE_ID

The script will do the following things

1. If there already is a node_modules folder just run `npm rebuild`
2. See if there is cache stored for `$CACHE_ID`. If so copy it to ./node_modules
3. Prune the cache
3. Run `npm install --production`
4. Save ./node_modules to the cache

Primarily useful when your are deploying / building a node app on a remote server.
This is similar to the [heroku node.js buildpack](https://github.com/heroku/heroku-buildpack-nodejs) except it only does npm stuff.

## License

MIT

---
_Source: https://npm.io/package/npm-buildpack · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
