fix: add fsevents as optional dep to fix install on Linux (#182)
fsevents is a macOS-only native module that comes as a transitive optional dependency of playwright. On Linux, npm tries to build it via node-gyp which fails fatally, breaking 'npm install -g gsd-pi'. Adding fsevents as an explicit optionalDependency at the root level ensures npm gracefully skips it on non-macOS platforms. This is the standard pattern used by vite, webpack, and chokidar.
This commit is contained in:
parent
9f58583888
commit
c18f7d1f69
2 changed files with 6 additions and 0 deletions
3
package-lock.json
generated
3
package-lock.json
generated
|
|
@ -41,6 +41,9 @@
|
|||
},
|
||||
"engines": {
|
||||
"node": ">=20.6.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"fsevents": "~2.3.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@anthropic-ai/sdk": {
|
||||
|
|
|
|||
|
|
@ -75,6 +75,9 @@
|
|||
"jiti": "^2.6.1",
|
||||
"typescript": "^5.4.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"fsevents": "~2.3.2"
|
||||
},
|
||||
"overrides": {
|
||||
"gaxios": "7.1.4"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue