Skip to content

Permissions Error During Claude Code Global Package Update with NVM #2932

Description

@phuctm97

Bug Description
Got this error when I ran /status

⚠ No write permissions for auto-updates (requires sudo)
⚠ Config mismatch: running npm-global but config says unknown

Everything is working fine. I'm using nvm for running node and npm. I've enabled corepack as well. I'm not so sure what's causing the issue, but Claude Code should be able to just run npm install -g @anthropic-ai/claude-code@latest to update.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.41
  • Feedback ID: 3bfb877a-ddf6-4a1b-b65a-157993564a5b

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at JI (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n    at file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n    at Q (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n    at _X (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n    at w_ (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n    at U9 (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-03T13:25:55.305Z"},{"error":"Error: Failed to check bun permissions\n    at QT5 (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2121:690)\n    at async g9A (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2121:808)\n    at async ip (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2131:4230)\n    at async yP5 (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2426:1118)\n    at async Y (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2426:4647)","timestamp":"2025-07-03T13:25:57.663Z"},{"error":"Error: Failed to check bun permissions\n    at QT5 (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2121:690)\n    at async g9A (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2121:808)\n    at async ip (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2131:4230)\n    at async yP5 (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2426:1118)\n    at async Y (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2426:4647)","timestamp":"2025-07-03T13:26:00.107Z"},{"error":"Error: Failed to check bun permissions\n    at QT5 (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2121:690)\n    at async g9A (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2121:808)\n    at async ip (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2131:4230)\n    at async yP5 (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2426:1118)\n    at async Y (file:///Users/phuctm97/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2426:4647)","timestamp":"2025-07-03T13:26:00.117Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagingbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions