Skip to content

Commit

Permalink
docs[patch]: Update install instructions (#5957)
Browse files Browse the repository at this point in the history
* docs[patch]: Update install instructions

* Update installation.mdx

* Update installation.mdx
  • Loading branch information
jacoblee93 authored Jul 2, 2024
1 parent 888a62e commit 3ebc3a3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/core_docs/docs/how_to/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ By default, the dependencies needed to do that are NOT installed. You will need
We'll show how to do that in the next sections of this guide.

Please also see the section on [installing integration packages](/docs/how_to/installation/#installing-integration-packages)
for some special considerations.
for some special considerations when installing LangChain packages.

## Ecosystem packages

Expand All @@ -50,6 +50,10 @@ When installing a package, you do not need to explicitly install that package's
However, you may choose to if you are using a feature only available in a certain version of that dependency.
If you do, you should make sure that the installed or pinned version is compatible with any other integration packages you use.

**Note:** It is important that your app only uses one version of `@langchain/core`. Common package managers may introduce additional versions
when resolving dependencies, even if you don't intend this. See [this section on installing integration packages](/docs/how_to/installation/#installing-integration-packages)
for more information and ways to remedy this.

### @langchain/community

The [@langchain/community](https://www.npmjs.com/package/@langchain/community) package contains a range of third-party integrations.
Expand Down Expand Up @@ -130,6 +134,8 @@ If you are using `yarn`:
}
```

You can also try running the [`yarn dedupe`](https://yarnpkg.com/cli/dedupe) command if you are on `yarn` version 2 or higher.

Or for `npm`:

```json title="npm package.json"
Expand All @@ -150,6 +156,8 @@ Or for `npm`:
}
```

You can also try the [`npm dedupe`](https://docs.npmjs.com/cli/commands/npm-dedupe) command.

Or for `pnpm`:

```json title="pnpm package.json"
Expand All @@ -172,6 +180,8 @@ Or for `pnpm`:
}
```

You can also try the [`pnpm dedupe`](https://pnpm.io/cli/dedupe) command.

## Loading the library

### TypeScript
Expand Down

0 comments on commit 3ebc3a3

Please sign in to comment.