Branch | Status |
---|---|
master | |
develop |
Ansible role to install Node.js with NVM on macOS or Ubuntu Developer machines.
The role doesn't use Homebrew for installing nvm on macOS as it's not a support method in the upstream repository.
Git and cURL are installed if missing on the target system.
# We're installing stable Node.js version by default
nvm_default_node_version: stable
nvm_node_versions:
- "{{ nvm_default_node_version }}"
# Initialize shell profile scripts
nvm_shell_init: yes
# Define the shell profile scripts to initialiaze
nvm_shell_profile_scripts:
- .bashrc
- .zshrc
- hosts: localhost
connection: local
roles:
- { role: markosamuli.nvm }
I've used this for installing NVM and Node.js on Pengwin distribution on WSL.
The configuration variables for bash and zsh profiles are missing for untested distributions.