Skip to main content

ZC Buildout recipe for node.js

Project description

Detailed Documentation

Supported options

The recipe supports the following options:

url to a node.js source archive
url to a node.js binary archive. You can use placeholders {v} (the desired node version), {p} (platform name), and {a} (CPU architecture). Defaults to{v}/node-v{v}-{p}-{a}.tar.gz. Ignored if url is set, or if the platform is not recognized.
node.js version. Ignored if url is set, or if binary-url is set that doesn’t use the {v} placeholder. Default to recipe version. Mean that using recipe=gp.recipe.node==0.10.22.X will install node 0.10.22
a list of package to install with npm. You can specify a package version by using npmname@version
a list of scripts (optional)
a list of extra directory to add to NODE_PATH
will generate paths relative to the root buildout directory. this is also honored if ‘relative-paths’ is in the main buildout section

Example usage

We’ll start by creating a buildout that uses the recipe:

>>> write('buildout.cfg',
... """
... [buildout]
... parts = test1
... [test1]
... recipe = gp.recipe.node
... npms = coffee-script less
... scripts = coffee lessc
... """)

Running the buildout gives us:

>>> print 'start', system(buildout)
Installing test1.
Generated script '.../bin/lessc'.


Gael Pasgrimaud, Author Yusuke Tsutsumi

Change history (2019-12-12)

  • update to 13.x (2016-06-28)

  • Add support for offline mode in Buildout (-o)
  • Quote $PATH variable in order to fix problem when $PATH contains space characters. (2015-09-01)

  • allow to specify URL for binary node.js distribution (binary-url) (2015-05-22)

  • allow to run non-node scripts (casperjs)
  • extend PATH to buildout related paths
  • extend NODE_PATH to module dependencies (allow to install .) (2015-05-21)

  • Bugfix when using node-directory combined with relative-path (2015-05-21)

  • Allow to install node outside parts/ by specifying node-directory options
  • Switch to (2015-03-12)

  • Switch to 0.12.0 (2014-06-03)

  • Switch to 0.10.28
  • relative-paths should be honored (2014-02-28)

  • Switch to 0.10.26 (2013-12-26)

  • Switch to 0.10.24 (2013-11-23)

  • Switch to 0.10.22
  • scripts option is no longer required (2013-11-08)

  • Switch to 0.10.21
  • Allow dev version
  • PEP8 (2013-10-14)

  • Switch to 0.10.20
  • py3 compat (2013-09-13)

  • Fixes a failure installing npms when the buildout path contains spaces

  • Update node version
  • Allow to use download cache

  • Allow to install only node/npm

  • Now use binary distribution on linux and osx by default. Mean that the recipe no longer require gcc and the installation is way much faster.
  • Raise an error if a script does not exist
  • Use package version to get the node.js version to install


  • Change npm install script location [Ross Pfahler]


  • Created recipe with ZopeSkel [Gael Pasgrimaud]

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gp.recipe.node, version
Filename, size File type Python version Upload date Hashes
Filename, size gp.recipe.node- (9.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size gp.recipe.node- (13.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page