#Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/opt/homebrew/lib/node_modules/openclaw/dist/auth-

1 messages · Page 1 of 1 (latest)

oblique beacon
#

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/opt/homebrew/lib/node_modules/openclaw/dist/auth-profiles-3t9aTwDR.js' imported from /opt/homebrew/lib/node_modules/openclaw/dist/reply-DpTyb3Hh.js

somber karmaBOT
#

That error usually means your global OpenClaw install is incomplete/corrupted (a hashed dist/auth-profiles-*.js chunk that reply-*.js imports is missing). A clean reinstall fixes it almost every time.

Can you paste these first (helps catch “wrong binary / wrong Node” issues):

which openclaw
openclaw --version
node -v

Then do a clean reinstall (your path /opt/homebrew/lib/node_modules/... suggests you installed it with npm under Homebrew Node):

npm uninstall -g openclaw
npm cache clean --force
npm install -g openclaw@latest

If this is happening when the Gateway service runs, restart it after reinstall:

#
openclaw gateway restart

If it still points at the old/broken path, paste openclaw gateway status and we’ll fix the service install (it can sometimes keep referencing an old global module path).

somber karmaBOT
# oblique beacon Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/opt/homebrew/lib/node_modules...

Yep — that specific ERR_MODULE_NOT_FOUND with a missing hashed dist/auth-profiles-*.js chunk basically means your global OpenClaw install in /opt/homebrew/lib/node_modules/openclaw/ is broken/incomplete (the reply-*.js file references a chunk that isn’t there).

Please paste:

which openclaw
openclaw --version
node -v

Then do a clean reinstall:

npm uninstall -g openclaw
npm cache clean --force
npm install -g openclaw@latest

If you’re running it via the Gateway/launchd and it still crashes after that, also paste: