Full Installation

      +
      Installation instructions for the Node.js Analytics SDK.

      Before You Start

      Set up an Enterprise Analytics cluster.

      Prerequisites

      The Columnar Node.js SDK supports LTS versions of Node.js — these are 24 and 22 at the time of the 1.0.0 release (August 2025). See the compatibility page for more information about platform support.

      We recommend using the most recent long-term support (LTS) version of Node.js — at the time of writing (August 2025) this is version 24.

      Getting the SDK

      The SDK can be installed via npm:

      npm install couchbase-analytics

      Other Installation Methods

      A select set of packages with prebuilt binaries are available on the GitHub Releases page. If a packages is not available for your specific platform, See the GitHub Building page for details on how to build the SDK’s binary.

      Installing from a Downloaded Package

      To install the SDK from a package on the GitHub Releases page:

      1. Download the appropriate package

      2. Unzip the downloaded file

      3. Install via npm: npm install <path to unzipped file>

      Building from Source

      If a compatible package is not available, the SDK’s binary will need to be built from source:

      • Follow the steps on the GitHub Building page.

      • After the build succeeds, the SDK can be used by running Node scripts from within the cloned repository — or the SDK can be installed via npm: npm install <path to cloned repository>.