This document describes how to install the SDK using Node.js & NPM (Node Package Manager), which is not specific to any framework.
Install the SDK
- As a prerequisite, ensure Node.js and the NPM CLI are set up and ready to use locally. See https://docs.npmjs.com/downloading-and-installing-node-js-and-npm for more information.
- Install the latest Kochava SDK version using one of the following CLI commands:
Globally: npm install -g kochava
Locally: npm install kochava
Local as Dev Dependency: npm install -D kochava or npm install kochava –save-dev
For more information on installing packages from the CLI, see: https://docs.npmjs.com/cli/v6/commands/npm-install
The latest SDK version will be installed using the above commands, and we strongly recommend always installing the latest version. However, if you wish to install a specific version, the desired version should be appended to the CLI command. For example, to install SDK version 1.0.6 the CLI command might look like this: npm install firstname.lastname@example.org
Using the SDK