This is a [Heroku buildpack](http://devcenter.heroku.com/articles/buildpacks) for Node.js apps.
It uses [NPM](http://npmjs.org/) and [SCons](http://www.scons.org/).
Usage
-----
The buildpack will detect your app as Node.js if it has a `package.json` file in the root. It will use npm to install your dependencies, and vendors a version of the Node.js runtime into your slug.
The buildpack will detect your app as Node.js if it has the file `package.json` in the root. It will use NPM to install your dependencies, and vendors a version of the Node.js runtime into your slug. The `node_modules` directory will be cached between builds to allow for faster NPM install time.
Node.js and npm versions
------------------------
You can specify the versions of Node.js and npm your application requires using `package.json`
{
```json
{
"name":"myapp",
"version":"0.0.1",
"engines":{
"node": ">=0.4.7 <0.7.0",
"npm": ">=1.0.0"
}
"node":"~0.10.13",
"npm":"~1.3.2"
}
}
```
To list the available versions of Node.js and npm, see these manifests:
To change the vendored binaries for Node.js, NPM, and SCons, use the helper scripts in the `support/` subdirectory. You'll need an S3-enabled AWS account and a bucket to store your binaries in.
Documentation
-------------
For example, you can change the default version of Node.js to v0.6.7.
For more information about buildpacks and Node.js, see these Dev Center articles:
First you'll need to build a Heroku-compatible version of Node.js:
-[Getting Started with Node.js on Heroku](https://devcenter.heroku.com/articles/nodejs)