Node.js

Node.js

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.

Setup on macOS

To install Node.js with nvm, run the setup script with the nvm tags:

./setup -t nvm

This will use markosamuli.nvm Ansible role.

The Ansible role will automatically configure your bash or zsh shell.

Setup on Linux

To install Node.js with nvm, run the setup script with the nvm tags:

./setup -t nvm

This will use markosamuli.nvm Ansible role.

The Ansible role will automatically configure your bash or zsh shell.

Managing Node versions with nvm

Both Linux and macOS configuration use the markosamuli.nvm Ansible role for installing Node Version Manager (nvm) and the latest Node.js LTS version.

After the setup is complete, you should see the following versions installed:

$ nvm ls
->     v10.16.0
         system
default -> lts/* (-> v10.16.0)
node -> stable (-> v10.16.0) (default)
stable -> 10.16 (-> v10.16.0) (default)
iojs -> N/A (default)
unstable -> N/A (default)
lts/* -> lts/dubnium (-> v10.16.0)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.16.0 (-> N/A)
lts/dubnium -> v10.16.0