[BUG] ERROR Cannot read properties of null (reading 'alwaysThinking')

Status Fixed / completed
Maintainer reply None cached
Activity 8 comments · opened Apr 23, 2026 · closed Apr 23, 2026

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?

ERROR Cannot read properties of null (reading 'alwaysThinking')

file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1825:2124

  • (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1825:2124)
  • Object.useMemo (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:25927)
  • JtQ.useMemo (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:11:7671)
  • mk (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1825:2102)
  • Fq (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19414)
  • dr (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42814)
  • b9 (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38355)
  • Vc (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38283)
  • wq (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38137)
  • GU (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:35216)

TypeError: Cannot read properties of null (reading 'alwaysThinking')
at file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1825:2124
at Object.useMemo (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:25927)
at JtQ.useMemo (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:11:7671)
at mk (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1825:2102)
at Fq (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19414)
at dr (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42814)
at b9 (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38355)
at Vc (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38283)
at wq (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38137)
at GU (file:///Users/lillian/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:35216)

What Should Happen?

.

Error Messages/Logs

Steps to Reproduce

newst version claude code : send Hello message

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Code v2.0.25

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

8 Comments

Lillian-Yo · 4 months ago

I have already restart my mac & rm the ~/.claude/settings.json file

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/52178
  2. https://github.com/anthropics/claude-code/issues/51896
  3. https://github.com/anthropics/claude-code/issues/14640

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

Lillian-Yo · 4 months ago

npm uninstall -g @anthropic-ai/claude-code and reinstalling didn't resolve my problem

Lillian-Yo · 4 months ago

I switch the npm from homebrew to nvm and then install claude code @2.1.118,resolve the problem

Vrq · 4 months ago

So what's the solution? Happening on npm and uninstall doesn't help.

alishaevn · 4 months ago

After executing brew install --cask claude-code, it updated claude and it now works again.

``` bash
==> Upgrading 1 outdated package:
claude-code 2.0.8 -> 2.1.118
==> Fetching downloads for: claude-code
✔︎ Cask claude-code (2.1.118)
==> Upgrading claude-code
2.0.8 -> 2.1.118

danielearwicker · 3 months ago

Run the official claude code installer. If that doesn't work, run claude --version and you may find it's still stuck on something really old such as:

2.0.22 (Claude Code)

So to find out what's running here, say: which claude and it will print the path to the old version that you need to remove. Then rm <path> on that path, and then next time you start claude, it should be the latest version.

github-actions[bot] · 1 month ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.