[BUG] Error: EPERM: operation not permitted, uv_cwd
node:internal/bootstrap/switches/does_own_process_state:142
cachedCwd = rawMethods.cwd();
^
Error: EPERM: operation not permitted, uv_cwd
at wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:142:28)
at mM4 (file:///Users/xxx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:431:909)
at file:///Users/xxx/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:431:1112
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5) {
errno: -1,
code: 'EPERM',
syscall: 'uv_cwd'
}
Node.js v22.12.0
I get the above when I tried to run it.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗