You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/only-allow-pnpm.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: only-allow-pnpm
3
3
title: Only Allow PNPM
4
4
---
5
5
6
-
When many developers are working on the same project together, you need a failsafe in case someone accidentally runs commands with another package manager (like NPM, Yarn, Bun).
6
+
When many developers are working on the same project together, you need a failsafe in case someone accidentally runs commands with another package manager (like NPM, Yarn, or Bun).
7
7
8
8
To prevent dependency management conflicts between package managers:
9
9
@@ -25,6 +25,7 @@ engine-strict=true
25
25
},
26
26
"packageManager": {
27
27
"name": "pnpm",
28
+
"version": "10.13.1",
28
29
"onFail": "error"
29
30
}
30
31
},
@@ -35,7 +36,7 @@ engine-strict=true
35
36
}
36
37
```
37
38
38
-
- Now, when you run `npm i`, `npm i -D` (or an equivalent), these commands return this error (before the preinstall script can run):
39
+
- Now, when you run `npm i`, `npm i -D` (or an equivalent), these commands return this error:
0 commit comments