fabtools.require.nodejs¶
Node.js¶
This module provides tools for installing Node.js and managing packages using npm.
See also
- fabtools.require.nodejs.installed_from_source(version='0.10.13')[source]¶
Require Node.js to be installed from source.
from fabtools import require require.nodejs.installed_from_source()
- fabtools.require.nodejs.package(pkg_name, version=None, local=False)[source]¶
Require a Node.js package.
If the package is not installed, and no version is specified, the latest available version will be installed.
If a version is specified, and a different version of the package is already installed, it will be updated to the specified version.
If local is True, the package will be installed locally.
from fabtools import require # Install package system-wide require.nodejs.package('foo') # Install package locally require.nodejs.package('bar', local=True)