mirror of
https://github.com/jbranchaud/til
synced 2026-01-04 23:58:01 +00:00
Add Globally Install Specific Version Of PNPM as a JavaScript TIL
This commit is contained in:
15
javascript/globally-install-specific-version-of-pnpm.md
Normal file
15
javascript/globally-install-specific-version-of-pnpm.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user