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
docs: declare node-linker when using Yarn 3 (#7113)
Because of yarn 3 use PnP by default, but electron-builder still need node-modules.
So add configuration in the `.yarnrc.yaml`:
```
nodeLinker: "node-modules"
```
will declare to use node-modules instead of PnP.
Copy file name to clipboardexpand all lines: README.md
+8
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,14 @@ public-hoist-pattern=*
92
92
shamefully-hoist=true
93
93
```
94
94
95
+
### Note for Yarn 3
96
+
97
+
Yarn 3 use PnP by default, but electron-builder still need node-modules(ref: [yarnpkg/berry#4804](https://github.com/yarnpkg/berry/issues/4804#issuecomment-1234407305)). Add configuration in the `.yarnrc.yaml` as follows:
98
+
```
99
+
nodeLinker: "node-modules"
100
+
```
101
+
will declare to use node-modules instead of PnP.
102
+
95
103
## Quick Setup Guide
96
104
97
105
[electron-webpack-quick-start](https://github.com/electron-userland/electron-webpack-quick-start) is a recommended way to create a new Electron application. See [Boilerplates](https://www.electron.build/#boilerplates).
0 commit comments