[BUG] CPU 100% usage by npm view command loop
Resolved 💬 4 comments Opened Sep 2, 2025 by matsuoka-lmr Closed Jan 22, 2026
Environment
- OS: Ubuntu 22.04 LTS
- Claude Code Version: 1.0.100
- Node.js Version: v22.17.0
- Server Specs: 4GB RAM, 4 CPU cores
- Date: 2025-09-03
Issue Description
Claude CLI repeatedly executes npm view @anthropic-ai/claude-code@latest version in an infinite loop, causing 100% CPU usage and making the server unresponsive.
Reproduction Steps
- Start Claude CLI session with
claudecommand - Monitor system processes with
toporps aux - Observe
npm view @anthropic-ai/claude-code@latest versionprocess consuming 100% CPU - Kill the process with
pkill -f "npm view" - Process immediately restarts and continues consuming 100% CPU
Expected Behavior
Version check should:
- Run once at startup, or
- Run at reasonable intervals (e.g., once per hour/day)
- Not consume excessive CPU resources
Actual Behavior
- Version check runs continuously in an infinite loop
- Process consumes 100% CPU
- Server becomes unresponsive
- Killing the process results in immediate restart
- Multiple instances may spawn simultaneously
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗