diff --git a/README.md b/README.md index 32dae4b..f6eb3cd 100644 --- a/README.md +++ b/README.md @@ -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). -_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 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 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) - [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) diff --git a/javascript/globally-install-specific-version-of-pnpm.md b/javascript/globally-install-specific-version-of-pnpm.md new file mode 100644 index 0000000..1f565e9 --- /dev/null +++ b/javascript/globally-install-specific-version-of-pnpm.md @@ -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.