[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

  1. Start Claude CLI session with claude command
  2. Monitor system processes with top or ps aux
  3. Observe npm view @anthropic-ai/claude-code@latest version process consuming 100% CPU
  4. Kill the process with pkill -f "npm view"
  5. 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

View original on GitHub ↗

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