mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Globally Install Specific Version Of PNPM as a JavaScript TIL
This commit is contained in:
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
|||||||
|
|
||||||
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
||||||
|
|
||||||
_1269 TILs and counting..._
|
_1270 TILs and counting..._
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -426,6 +426,7 @@ _1269 TILs and counting..._
|
|||||||
- [Get The Response Status From An Axios Error](javascript/get-the-response-status-from-an-axios-error.md)
|
- [Get The Response Status From An Axios Error](javascript/get-the-response-status-from-an-axios-error.md)
|
||||||
- [Get The Time Zone Of The Client Computer](javascript/get-the-time-zone-of-the-client-computer.md)
|
- [Get The Time Zone Of The Client Computer](javascript/get-the-time-zone-of-the-client-computer.md)
|
||||||
- [Globally Install A Package With Yarn](javascript/globally-install-a-package-with-yarn.md)
|
- [Globally Install A Package With Yarn](javascript/globally-install-a-package-with-yarn.md)
|
||||||
|
- [Globally Install Specific Version Of PNPM](javascript/globally-install-specific-version-of-pnpm.md)
|
||||||
- [Immutable Remove With The Spread Operator](javascript/immutable-remove-with-the-spread-operator.md)
|
- [Immutable Remove With The Spread Operator](javascript/immutable-remove-with-the-spread-operator.md)
|
||||||
- [Initialize A New JavaScript Project With Yarn](javascript/initialize-a-new-javascript-project-with-yarn.md)
|
- [Initialize A New JavaScript Project With Yarn](javascript/initialize-a-new-javascript-project-with-yarn.md)
|
||||||
- [Install The Latest Version Of Node With Nvm](javascript/install-the-latest-version-of-node-with-nvm.md)
|
- [Install The Latest Version Of Node With Nvm](javascript/install-the-latest-version-of-node-with-nvm.md)
|
||||||
|
|||||||
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