Skip to content

NPM Installation Failure for Claude Code Package This title captures the core issue of the user experiencing an NPM installation error when trying to install or update the Claude Code package, specifically related to a directory rename operation. #342

@yotsugi33

Description

@yotsugi33

Bug Description
claude code stops working after new update

npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/winter/.nvm/versions/node/v20.11.1/lib/node_modules/@anthropic-ai/claude-code
npm ERR! dest /Users/winter/.nvm/versions/node/v20.11.1/lib/node_modules/@anthropic-ai/.claude-code-VbonOQAC
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/winter/.nvm/versions/node/v20.11.1/lib/node_modules/@anthropic-ai/claude-code' -> '/Users/winter/.nvm/versions/node/v20.11.1/lib/node_modules/@anthropic-ai/.claude-code-VbonOQAC'claude

Environment Info

  • Platform: macos
  • Terminal: iTerm.app
  • Version: 0.2.29
  • Feedback ID: 68037aa8-15cd-4fb3-9dc9-041b1d21d46f

easy fix

just fixed it with rm -rf /Users/winter/.nvm/versions/node/v20.11.1/lib/node_modules/@anthropic-ai/claude-code

then re-installing

not that much of an issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplatform:macosIssue specifically occurs on macOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions