From e1aee6a44f172077ace1f9245e62b9910d6f5a74 Mon Sep 17 00:00:00 2001 From: adryserage <17680194+adryserage@users.noreply.github.com> Date: Fri, 19 Dec 2025 06:10:52 -0500 Subject: [PATCH] fix(deps): replace node-pty with @lydell/node-pty for prebuilt binaries node-pty@1.1.0-beta9 fails to compile on Windows with node-gyp due to MSBuild errors during native module compilation. This blocks installation for Windows users without full Visual Studio Build Tools configured. Solution: - Replace node-pty with @lydell/node-pty which provides prebuilt binaries - Add pnpm override to alias 'node-pty' imports to the new package - Update extraResources path for electron-builder - Remove node-pty from onlyBuiltDependencies (no compilation needed) @lydell/node-pty@1.1.0 provides prebuilt binaries for: - Windows x64 and ARM64 - macOS x64 (Intel) and ARM64 (Apple Silicon) - Linux x64 and ARM64 This eliminates the need for node-gyp compilation and ensures cross-platform compatibility without build tool dependencies. --- auto-claude-ui/package.json | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/auto-claude-ui/package.json b/auto-claude-ui/package.json index 55c2ee88..c8b6dd2b 100644 --- a/auto-claude-ui/package.json +++ b/auto-claude-ui/package.json @@ -30,6 +30,7 @@ "@dnd-kit/core": "^6.3.1", "@dnd-kit/sortable": "^10.0.0", "@dnd-kit/utilities": "^3.2.2", + "@lydell/node-pty": "^1.1.0", "@radix-ui/react-alert-dialog": "^1.1.15", "@radix-ui/react-checkbox": "^1.1.4", "@radix-ui/react-collapsible": "^1.1.3", @@ -59,7 +60,6 @@ "ioredis": "^5.8.2", "lucide-react": "^0.560.0", "motion": "^12.23.26", - "node-pty": "^1.1.0-beta42", "react": "^19.2.3", "react-dom": "^19.2.3", "react-markdown": "^10.1.0", @@ -104,12 +104,13 @@ "pnpm": { "overrides": { "electron-builder-squirrel-windows": "^26.0.12", - "dmg-builder": "^26.0.12" + "dmg-builder": "^26.0.12", + "node-pty": "npm:@lydell/node-pty@^1.1.0" }, "onlyBuiltDependencies": [ "electron", - "esbuild", - "node-pty" + "electron-winstaller", + "esbuild" ] }, "build": { @@ -132,8 +133,8 @@ ], "extraResources": [ { - "from": "node_modules/node-pty", - "to": "node_modules/node-pty" + "from": "node_modules/@lydell/node-pty", + "to": "node_modules/@lydell/node-pty" }, { "from": "resources/icon.ico", @@ -180,5 +181,6 @@ "*.{ts,tsx}": [ "eslint --fix" ] - } + }, + "packageManager": "pnpm@10.26.1+sha512.664074abc367d2c9324fdc18037097ce0a8f126034160f709928e9e9f95d98714347044e5c3164d65bd5da6c59c6be362b107546292a8eecb7999196e5ce58fa" }