https://github.com/pnpm/get.pnpm.io
https://github.com/pnpm/get.pnpm.io
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pnpm/get.pnpm.io
- Owner: pnpm
- Created: 2021-04-01T20:13:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-30T16:38:31.000Z (about 1 year ago)
- Last Synced: 2025-04-10T03:22:57.027Z (3 months ago)
- Language: JavaScript
- Homepage: https://get-pnpm-io.vercel.app
- Size: 62.9 MB
- Stars: 17
- Watchers: 5
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# pnpm installer
## Usage
On POSIX systems, you may install pnpm even if you don't have Node.js installed, using the following script:
```sh
curl -fsSL https://get.pnpm.io/install.sh | sh -
```If you don't have curl installed, you would like to use wget:
```sh
wget -qO- https://get.pnpm.io/install.sh | sh -
```On Windows (PowerShell):
```sh
iwr https://get.pnpm.io/install.ps1 -useb | iex
```## Verifying files
To download `SHASUMS256.txt` using curl:
```sh
curl -O https://get.pnpm.io/SHASUMS256.txt
```To check that a downloaded file matches the checksum, run it through sha256sum with a command such as:
```sh
grep v6.16.js SHASUMS256.txt | sha256sum -c -
```The GPG detached signature of `SHASUMS256.txt` is in `SHASUMS256.txt.sig`.
You can use it with `gpg` to verify the integrity of `SHASUMS256.txt`.
You will first need to import the GPG keys of individuals authorized to create releases.
To import the keys:```sh
curl https://keybase.io/pnpm/pgp_keys.asc | gpg --import
```Next, download the `SHASUMS256.txt.sig`:
```sh
curl -O https://get.pnpm.io/SHASUMS256.txt.sig
```Then use the following script to verify the file's signature:
```sh
gpg --verify SHASUMS256.txt.sig SHASUMS256.txt
```## Configuring
By default, the script will install the latest version of pnpm. A specific version can be installed by specifying the `PNPM_VERSION` environment variable:
```sh
curl -fsSL https://get.pnpm.io/install.sh | PNPM_VERSION=6.27.2 sh -
``````sh
$env:PNPM_VERSION='6.27.2' ; iwr https://get.pnpm.io/install.ps1 -useb | iex
```All the supported environment variables that can influence pnpm's installation:
| Env variable | Type | Description | Example |
| ----------------- | --------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------- |
| **PNPM_VERSION** | _version | `latest` by default. The pnpm version to be installed.
(not older than `[email protected]`) | `PNPM_VERSION=6.31.0` |