[Bug] npm ERESOLVE: Dependency Resolution Failure with Peer Dependencies

Resolved 💬 1 comment Opened Oct 2, 2025 by hubert-marek Closed Oct 11, 2025

Bug Description
Unable to uninstall the package or do an autoupdate.

Fix found
Migrating to a local installation solved the issue

Logs from npm uninstall @anthropic-ai/claude-code and sudo npm uninstall @anthropic-ai/claude-code

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: react-radio-group@3.0.3
npm warn Found: peer webpack@"1 || 2 || ^2.1.0-beta" from babel-loader@5.4.2
npm warn node_modules/.pnpm/react-radio-group@3.0.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-radio-group/node_modules/babel-loader
npm warn   dev babel-loader@"^5.0.0" from react-radio-group@3.0.3
npm warn   node_modules/.pnpm/react-radio-group@3.0.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-radio-group
npm warn
npm warn Could not resolve dependency:
npm warn peer webpack@"1 || 2 || ^2.1.0-beta" from babel-loader@5.4.2
npm warn node_modules/.pnpm/react-radio-group@3.0.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-radio-group/node_modules/babel-loader
npm warn   dev babel-loader@"^5.0.0" from react-radio-group@3.0.3
npm warn   node_modules/.pnpm/react-radio-group@3.0.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-radio-group
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency. 

After this, the process halts.

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 1.0.120
  • Feedback ID: 09a900d0-0d5d-46ce-b082-21c299f69053

Errors

[{"error":"AxiosError: Request failed with status code 400\n    at MN (file:///Users/hubertpysklo/node_modules/@anthropic-ai/claude-code/cli.js:715:1077)\n    at IncomingMessage.J0 (file:///Users/hubertpysklo/node_modules/@anthropic-ai/claude-code/cli.js:716:9955)\n    at IncomingMessage.emit (node:events:530:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at OQ1.request (file:///Users/hubertpysklo/node_modules/@anthropic-ai/claude-code/cli.js:718:2088)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Nq1 (file:///Users/hubertpysklo/node_modules/@anthropic-ai/claude-code/cli.js:1013:6782)\n    at async JV5 (file:///Users/hubertpysklo/node_modules/@anthropic-ai/claude-code/cli.js:3421:9220)","timestamp":"2025-10-02T19:23:20.394Z"},{"error":"L_1: Insufficient permissions for global npm install.\n    at vC0 (file:///Users/hubertpysklo/node_modules/@anthropic-ai/claude-code/cli.js:1627:1029)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async cG1 (file:///Users/hubertpysklo/node_modules/@anthropic-ai/claude-code/cli.js:1637:43)\n    at async file:///Users/hubertpysklo/node_modules/@anthropic-ai/claude-code/cli.js:3398:5909","timestamp":"2025-10-02T19:23:20.790Z"}]

<img width="910" height="257" alt="Image" src="https://github.com/user-attachments/assets/7821e8a8-b4f5-468e-bcdf-17a4262098a8" />

<img width="621" height="108" alt="Image" src="https://github.com/user-attachments/assets/887b6cd5-4ead-415d-9dc4-b789a0f9fbd6" />

For claude update

<img width="917" height="420" alt="Image" src="https://github.com/user-attachments/assets/878da36a-7a00-4afc-b14d-44c0789f1d92" />

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗