fabtools.require.nodejs

Node.js

This module provides tools for installing Node.js and managing packages using npm.

See also

fabtools.nodejs

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)
Read the Docs v: 0.17.0
Versions
latest
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.