Skip to content

Commit

Permalink
Add docs info on using yarn (#4581)
Browse files Browse the repository at this point in the history
fix #4576
  • Loading branch information
timotheeguerin authored Sep 30, 2024
1 parent b85473c commit f33c3ff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/introduction/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ Install [Node.js 20 LTS](https://nodejs.org/en/download/) and ensure you can run
npm --version
```

We recommend using npm 7+. To update npm, run `npm install -g npm`
### Package manager

TypeSpec uses node package linking to manage dependencies. Any package manager that produce a `node_modules` directory should work:

- npm 7+. To update npm, run `npm install -g npm`
- pnpm
- yarn

:::warning
Yarn will not automatically install implicit peerDependencies. TypeSpec libraries rely on this. Watch for warnings for any missing dependencies.
:::

## Install tsp

Expand Down

0 comments on commit f33c3ff

Please sign in to comment.