Installing Node.js

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

Installing Node.js on Microsoft Windows

We recommend installing Node.js 14 using the installer from 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 14 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 14 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 "Development Tools"
Ubuntu and variants
$ sudo apt install build-essential