Add command to install specific version

This commit is contained in:
Liz Snyder 2021-08-26 12:51:04 -07:00
parent cea3ba7ce9
commit 4d39000cd3
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,12 @@ To add the client to your project, install it from npm:
npm install @opensearch/opensearch npm install @opensearch/opensearch
``` ```
To install a specific major version of the client, run the following command:
```bash
npm install @opensearch/opensearch@<version>
```
If you prefer to add the client manually or just want to examine the source code, see [opensearch-js](https://github.com/opensearch-project/opensearch-js) on GitHub. If you prefer to add the client manually or just want to examine the source code, see [opensearch-js](https://github.com/opensearch-project/opensearch-js) on GitHub.
Then require the client: Then require the client: