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.
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
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗