Preparing for Installation

Install Couchbase Server first, if you haven’t done so already.
Refer to the installation guide for server installation instructions.

The SDK installation process will build libcouchbase (LCB) and other dependencies for you, so you will need the build tools for your platform, such as Visual Studio or GCC (more details in the LCB installation pages).

CentOS 6 does not have a recent enough GCC to build libcouchbase and couchnode (the Node.js Couchbase client).
Installing the Developer Toolset 7 will give you the build environment that you need, as well as the runtime libraries necessary for the Node.js SDK.

Installing the SDK

To install the SDK, simply use npm:

npm install couchbase

To install an older version, specify the version directly with npm.
For example, to install version 2.4.5:

Version 2.6.1 (13 November 2018)

Fixed Issues

JSCBC-517:
Updated all third-party dependencies to their latest versions.

Various minor changes.

Known Issues

Due to a new build system introduced in the 2.6.1 timeframe, there is a known incompatibility when using the prebuilds from this release with RHEL7.
2.6.4 should be used instead.

Version 2.6.0 (2 October 2018)

Version 2.6.0 is the first general availability release of the 2.6 series.
It adds support for the upcoming Couchbase Server 6.0’s features such as the new Analytics Service, improvements to Full Text Search, support for more complex network configurations along with many small improvements and fixes.

Known Issues

A memory leak was found within this release related to the creation
of tracing spans. Users are encouraged to update to the 2.5.1
release of the SDK or to disable tracing temporarily until the
upgrade is completed by specifying enable_tracing=false in
their connection string.

Version 2.2.1 (23 June 2016)

Version 2.2.1 is a minor bug-fix release of the 2.2 series.

$ npm install couchbase@2.2.1

Fixed Issues

Corrected incorrect sub-document API method names.

Version 2.2.0 (21 June 2016)

Version 2.2.0 is the first general availability release of the 2.2
series. It adds new features for N1QL query, performance enhancements
and supports the developer preview full text search available in
Couchbase Server 4.5. A number of these features were added as
uncommitted API in the 2.1 series and are now promoted to committed API.