Skip to main content

A buildout recipe to install NodeJS packages locally using npm

Project description

A zc.buildout recipe to install NodeJS packages locally using npm.

This recipe will install wanted packages in the local node_modules directory, and create a link to binaries in the buildout bin directory.


packages:required, a list of package names to install (can specify a version with the syntax name@version).
node_path:absolute path to the node executable, by default the bin/node in buildout directory.
npm_path:absolute path to the npm executable, by default the bin/npm in buildout directory.
 set to ‘true’ to strip the .js extension sometimes present on binaries (default is ‘false’).


Using a locally compiled NodeJS:

recipe = zc.recipe.cmmi
url =
bin_node = ${buildout:parts-directory}/nodejs/bin/node
bin_npm = ${buildout:parts-directory}/nodejs/bin/npm

recipe = rodacom.buildout.npm
node_path = ${nodejs:bin_node}
npm_path = ${nodejs:bin_npm}
packages = coffee-script@1.6.3

Known bugs

  • The links generated in the ‘bin’ directory are not removed on uninstall.

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 rodacom.buildout.npm, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size rodacom.buildout.npm-0.6.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page