From c18f7d1f69dc677923b75e39397a62eaa4d74b38 Mon Sep 17 00:00:00 2001 From: Adam Dry Date: Fri, 13 Mar 2026 14:48:14 +0000 Subject: [PATCH] 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. --- package-lock.json | 3 +++ package.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/package-lock.json b/package-lock.json index 2dd0cdff3..1ee78516b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,6 +41,9 @@ }, "engines": { "node": ">=20.6.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, "node_modules/@anthropic-ai/sdk": { diff --git a/package.json b/package.json index 458d25297..e66a7b2aa 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,9 @@ "jiti": "^2.6.1", "typescript": "^5.4.0" }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, "overrides": { "gaxios": "7.1.4" }