Getting the Node.js API Library Module

Node.js applications load the Solace Node.js API library module to make use of the API. The Solace Node.js API library module is available from the npmjs.org registry, and npm is used to retrieve it.

npm is a package manager for Node.js packages and modules and is installed on your computer when you install Node.js. npm can install packages and modules from a file system, a URL or the npmjs registry. npm can install packages and modules globally or locally to your project. Solace recommends that you install the Node.js API library module locally to your project.

For more information, see the npmjs online documentation.

Installing the Node.js API library module from npmjs.org

To install the latest available version of the Node.js API library, execute the following command from your project's root folder:

npm install solclientjs

To check the version of the installed Node.js API library, execute:

npm list solclientjs

To uninstall the Node.js API library, execute:

npm uninstall solclientjs