npm Global Install Permissions Failure with Sudo Chown Command

Resolved 💬 2 comments Opened Jul 26, 2025 by acabelt Closed Jul 26, 2025

Bug Description
cant fix missing permissions with: sudo chown -R $USER:$(id -gn) $(npm -g config get prefix) - local install is not an option

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.61
  • Feedback ID: a390efd3-ed2f-460d-9b99-800f4f752093

Errors

[{"error":"Error: 1: ENOENT \n    at oO6 (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1345:4765)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async sO6 (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1345:2187)","timestamp":"2025-07-26T21:12:45.809Z"},{"error":"Error: Failed to check bun permissions\n    at S68 (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1863:722)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Zw0 (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1863:840)\n    at async ee (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:4446)","timestamp":"2025-07-26T21:13:11.635Z"},{"error":"Error: Failed to check bun permissions\n    at S68 (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1863:722)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Zw0 (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1863:840)\n    at async ee (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:4446)","timestamp":"2025-07-26T21:13:41.667Z"},{"error":"Error: Failed to check bun permissions\n    at S68 (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1863:722)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Zw0 (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1863:840)\n    at async ee (file:///home/aca/.nvm/versions/node/v22.17.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:4446)","timestamp":"2025-07-26T21:13:51.663Z"}]

View original on GitHub ↗

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