Skip to main content

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.

strip_extension:

set to ‘true’ to strip the .js extension sometimes present on binaries (default is ‘false’).

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.

Release files for rodacom.buildout.npm 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rodacom.buildout.npm 0.6
File Size Uploaded
rodacom.buildout.npm-0.6.tar.gz 2.8 kB Details

Release files / rodacom.buildout.npm-0.6.tar.gz

Download URL rodacom.buildout.npm-0.6.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ebd1f2149e36fcd2db86367fe174087da1a957308994aa1bb8a6945aca8de83e
BLAKE2b-256 checksum
How to use checksums
18c91156c118ecbc06f1b94e3b39017ddcdb7602512dd84377df7819c79b5f1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.6 This release

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page