Installing Node.js

Caplin Trader’s build stack runs on Node.js. This page provides guidance on installing Node.js on Microsoft Windows, Apple macOS, and Linux.

These instructions are for installing a single version of Node.js. For advanced installations that manage multiple versions of Node.js, see Using a version manager to install Node.js and npm.

Installing Node.js on Microsoft Windows

For the Node.js installer, see Node.js Downloads on the Node.js website.

To install the build environment required to build native Node.js modules, see Compiling native AddOn modules in the Microsoft Node.js Guidelines.

Installing Node.js on macOS

We recommend installing Node.js using Homebrew.

The Homebrew package for Node.js automatically configures the npm package manager to install global packages to a location under your home directory (see npm’s prefix variable).

Installing Node.js on Linux

We recommend installing Node.js using Node Version Manager (nvm).

Some node packages required by Caplin Trader contain native extensions and may require compilation during installation. To set up a build environment, run the appropriate command below:

Red Hat Enterprise Linux 7 and variants
$ sudo yum group install "Developer Tools"
Ubuntu and variants
$ sudo apt install build-essential