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/TROUBLESHOOTING.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,31 @@ cd apps/code && npx electron-rebuild -f
110
110
111
111
Then restart the app.
112
112
113
+
## node-gyp failed to rebuild @parcel/watcher
114
+
115
+
If you see this error after pulling or switching branches:
116
+
117
+
```
118
+
Error: node-gyp failed to rebuild '/path/to/node_modules/@parcel/watcher'
119
+
```
120
+
121
+
`@parcel/watcher` ships prebuilt N-API binaries per platform (e.g. `@parcel/watcher-darwin-arm64`) and should not need recompilation. This error usually means a stale or partial install state is triggering a source rebuild that fails.
122
+
123
+
### Fix
124
+
125
+
```bash
126
+
rm -rf node_modules/@parcel/watcher
127
+
pnpm install
128
+
```
129
+
130
+
If that doesn't work, nuke and reinstall:
131
+
132
+
```bash
133
+
rm -rf node_modules && pnpm install
134
+
```
135
+
136
+
Do **not** run `npx @electron/rebuild` against `@parcel/watcher` — it doesn't need it and the rebuild will fail.
137
+
113
138
## `pnpm i` shows "Packages: -198"
114
139
115
140
You might see something like this every time you run `pnpm install`:
0 commit comments