1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00
Files
til/javascript/globally-install-specific-version-of-pnpm.md

16 lines
528 B
Markdown

# Globally Install Specific Version Of PNPM
There are several ways to install [`pnpm`](https://pnpm.io/). I prefer using
`npm` because I already have it installed and it fits in with all the other
global packages I have installed.
```bash
npm install --location=global pnpm@7.13.4
```
The `--location` flag tells `npm` to install it as a `global` package, rather
than as part of my current project.
The `@7.13.4` tacked onto the end of the `pnpm` package name is how I specify
the version of the package I am interested in.