[BUG] Error: Cannot find module './yoga.wasm'

Resolved 💬 12 comments Opened Sep 5, 2025 by DevGeorge Closed Sep 5, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude is breaking itself in the background (other issues mentions an Autoupdate issue)

What Should Happen?

Doesn't break itself every couple of days

Error Messages/Logs

node:internal/modules/cjs/loader:1144
  const err = new Error(message);
              ^

Error: Cannot find module './yoga.wasm'
Require stack:
- /Users/devgeorge/.nvm/versions/node/v20.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Function.resolve (node:internal/modules/helpers:187:19)
    at file:///Users/devgeorge/.nvm/versions/node/v20.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:685:22853
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
    at async loadESM (node:internal/process/esm_loader:34:7)
    at async handleMainPromise (node:internal/modules/run_main:113:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/devgeorge/.nvm/versions/node/v20.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js'
  ]
}

Node.js v20.10.0

Steps to Reproduce

  1. Install Claude
  2. Run Claude
  3. Close Claude
  4. Wait a day or so (autoupdate)
  5. Attempt to Run Claude
  6. Claude fails again.

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

1.0.106

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

This is NOT a new issue but the old issue was closed before being fixed.
https://github.com/anthropics/claude-code/issues/1103
https://github.com/anthropics/claude-code/issues/4470

View original on GitHub ↗

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