| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Install nodejs package and npm package provider for Debian, Ubuntu, Fedora, and RedHat.
Installs nodejs and npm per nodejs documentation.
Example:
include nodejs
You may want to use apt::pin to pin package installation priority on sqeeze. See puppetlabs-apt for more information.
apt::pin { 'sid': priority => 100 }
Two types of npm packages are supported.
For more information regarding global vs. local installation see nodejs blog
npm package provider is an extension of puppet package type which supports versionable and upgradeable. The package provider only handles global installation:
Example:
package { 'express':
ensure => present,
provider => 'npm',
}
package { 'mime':
ensure => '1.2.4',
provider => 'npm',
}
nodejs::npm is suitable for local installation of npm packages:
nodejs::npm { '/opt/razor:express':
ensure => present,
version => '2.5.9',
}
nodejs::npm title consists of filepath and package name seperate via ':', and support the following attributes:
The module have been tested on the following operating systems. Testing and patches for other platforms are welcomed.
| Back | FazBrowse Home | New Git URL |