Node.js Usage

Usage

Start REPL.

node

Check current supported ES6 features.

node --v8-options | grep harmony

Version Management

n

Installation

brew install n

Usage

n               # Display downloaded Node.js versions and install selection
sudo n latest   # Install the latest Node.js release (downloading if necessary)
sudo n lts      # Install the latest LTS Node.js release (downloading if necessary)