[Bug] Code mode silently fails with bundled binary 2.1.87, CLI 2.1.92 works

Resolved 💬 3 comments Opened Apr 7, 2026 by Healthman31 Closed Apr 10, 2026

Bug Description
Code mode in desktop app v1.569.0 silently fails — bundled binary 2.1.87 exits with code 1 immediately. CLI 2.1.92 works fine in Terminal. Cowork mode works. Only Code mode is broken.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.92
  • Feedback ID: f4a40fcf-f4d1-41d8-a6fa-3753d33ac153

Errors

[{"error":"l68: Insufficient permissions for global npm install.\n    at w7K (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2130:1598)\n    at async Rj6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:13149)","timestamp":"2026-04-07T08:03:57.104Z"},{"error":"l68: Insufficient permissions for global npm install.\n    at w7K (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2130:1598)\n    at async Rj6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:13149)","timestamp":"2026-04-07T08:03:57.105Z"},{"error":"l68: Insufficient permissions for global npm install.\n    at w7K (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2130:1598)\n    at async Rj6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:13149)","timestamp":"2026-04-07T08:03:57.245Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:508:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2026-04-07T08:03:57.347Z"},{"error":"l68: Insufficient permissions for global npm install.\n    at w7K (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2130:1598)\n    at async Rj6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:13149)","timestamp":"2026-04-07T08:03:57.820Z"},{"error":"l68: Insufficient permissions for global npm install.\n    at w7K (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2130:1598)\n    at async Rj6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:13149)","timestamp":"2026-04-07T08:03:57.844Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:508:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2026-04-07T08:04:56.933Z"},{"error":"l68: Insufficient permissions for global npm install.\n    at w7K (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2130:1598)\n    at async Rj6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:13149)","timestamp":"2026-04-07T08:05:04.670Z"},{"error":"l68: Insufficient permissions for global npm install.\n    at w7K (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2130:1598)\n    at async Rj6 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:13149)","timestamp":"2026-04-07T08:05:04.670Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:508:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2026-04-07T08:05:07.737Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:508:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2026-04-07T08:06:17.020Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗