quocvu.nodejs
nodejs
Setup NVM, NodeJS, and NPM for development purpose. NVM allow developers to run multiple version of NodeJS on the same computer.
Requirements
Ansible and an internet connection
Role Variables
nvm_versionis the version of the NVM installer. Check https://github.com/creationix/nvm for the most recent version.node_versionsis the list of node versions to install via NVM. We recommend installing at least one stable version.npm_global_packagesis the list of the NPM packages to be installed globally
Dependencies
none
Example Playbook
To install NodeJS development environment, add the following in your playbook:
- hosts: servers
roles:
- { role: quocvu.nodejs }
License
MIT
Author Information
Quoc Vu
https://github.com/quocvu
https://linkedin.com/in/quocvu
