This module provides tools for installing Node.js and managing packages using npm.
See also
Require Node.js to be installed from source.
from fabtools import require
require.nodejs.installed_from_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)