- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with nvm
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
This module will install nvm and use it to install nodejs versions on a per user basis. This allows you to have multiple nvm installations per system such as using one user/nvm install per application running.
This module requires the user you want to install nvm for to already exist.
user{'bob':
ensure => present,
managehome => true,
}
nvm{'bob':
versions => ["10.40", "stable", "12.6"]
default_version => "stable"
}
Manages nvm for specified user.
-
versions
: Specifies the versions of nodejs to install for this user. Valid options: an array of strings. Default: ['stable']. -
default_version
: Specifies the default version of nodejs that nvm will use. Valid options: a string from theversions
parameter. Default: ['stable']. -
nvm_version
: Specifies the version of nvm to install. Valid options: a string. Default: '0.26.1'.
Tested on:
- Ubuntu 12.04
- Ubuntu 14.04
- Debian 6
- Debian 7
- Centos 6
- Centos 7