Skip to content

Commit d27b4da

Browse files
nakrovaticxymds
andauthored
chore: update PNPM to v12 (#227)
Co-authored-by: cxymds <cxymds@gmail.com>
1 parent 00756f6 commit d27b4da

3 files changed

Lines changed: 63 additions & 141 deletions

File tree

‎README.md‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ console/
7676
### Prerequisites
7777

7878
- **Node.js** >= 22
79-
- **pnpm** >= 11.0.0 (recommended to use the version specified in the project)
79+
- **pnpm** >= 12.0.0 (recommended to use the version specified in the project)
8080
- **Docker** - For running RustFS service
8181

8282
### Start RustFS Service
@@ -98,7 +98,27 @@ The service will start on the following ports:
9898

9999
### Install Dependencies
100100

101+
The pnpm version is pinned in `package.json` under `devEngines.packageManager`.
102+
103+
If you use Corepack, upgrade to **Corepack >= 0.34.5** before running pnpm 12:
104+
105+
```bash
106+
npm install --global corepack@0.34.5
107+
corepack enable pnpm
108+
```
109+
110+
Older Corepack versions look for `bin/pnpm.cjs`, which pnpm 12 no longer provides. If a previous attempt failed with `Cannot find module .../bin/pnpm.cjs`, run `corepack cache clean` after upgrading to clear the stale package-manager cache, then retry.
111+
112+
Alternatively, install pnpm directly through npm. If Corepack manages your `pnpm` command, first run `corepack disable pnpm`.
113+
114+
```bash
115+
npm install --global pnpm@12.3.4
116+
```
117+
118+
From the project directory, verify the pinned version and install dependencies:
119+
101120
```bash
121+
pnpm --version # Expected: 12.3.4
102122
pnpm install
103123
```
104124

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
},
7575
"packageManager": {
7676
"name": "pnpm",
77-
"version": "11.11.0",
77+
"version": "12.3.4",
7878
"onFail": "download"
7979
}
8080
}

‎pnpm-lock.yaml‎

Lines changed: 41 additions & 139 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)