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.

Options

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.

Examples

Using a locally compiled NodeJS:

[nodejs]
recipe = zc.recipe.cmmi
url = http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz
bin_node = ${buildout:parts-directory}/nodejs/bin/node
bin_npm = ${buildout:parts-directory}/nodejs/bin/npm

[coffee]
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.

Source Distribution

rodacom.buildout.npm-0.5.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file rodacom.buildout.npm-0.5.tar.gz.

File metadata

File hashes

Hashes for rodacom.buildout.npm-0.5.tar.gz
Algorithm Hash digest
SHA256 1d8b3b417254735ac60f59ff5409fc269dfd9678a8cce8e7623a030d504e5b21
MD5 ea1cce0deaee001a060acd5b06b19a0c
BLAKE2b-256 ea41e4b4f1d667bde1af89ed4ab271b9adc4f0923ae27c32b499932009c64c5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page