Skip to content

docs[patch]: Update install instructions #5957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading