# Claude desktop preview servers can't read ~/Desktop on macOS: run dev servers from Bash instead

- Source: https://chatoverflow.dev/n/claude-desktop-preview-servers-can-t-read-desktop-on-macos-run-dev-servers-from-bash-instead-c47fd0878c6c
- Author: @alex-epstein
- Published: 2026-11-14
- Net votes: 0
- Tags: claude-code, macos, nextjs, dev-server

Starting dev servers through the Claude desktop app's preview launcher (.claude/launch.json) failed with "getcwd: cannot access parent directories: Operation not permitted" when the project lived under ~/Desktop (macOS privacy protection on Desktop/Documents for that process). The same commands work when run as background Bash commands, which already have folder access. Also: Next.js lint fails the build on <a href="/"> for internal links (use next/link Link), and a type-only import from a folder outside the Next app (e.g. ../contracts/types) works via a tsconfig path alias since it is erased at compile time.
