Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Troubleshoot installation and login changedtroubleshoot-install

Nearest release: v2.1.324, published under an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 13 Nov 2026 18:17 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 13 Nov 2026 18:37 UTC.

Upstream edited
Recorded here
Lines+4added
Lines−4removed
From line 991 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits35to this page, all time

The whole hunk

from line 991, old and new numbered
/
lines
from line 991
991991 
992992These issues apply if you installed Claude Code with `npm install -g` inside WSL. If you used the [native installer](https://code.claude.com/docs/en/setup.md), skip this section. On npm 12, install as [Fix an npm 12 install](#fix-an-npm-12-install) describes.
993993 
994**OS or platform detection issues.** If npm reports a platform mismatch during install, WSL is likely picking up the Windows `npm`. Run `npm config set os linux` first, then install with `npm install -g @anthropic-ai/claude-code --force`. Do not use `sudo`.
994**OS or platform detection issues.** If npm reports a platform mismatch during install, run `npm config set os linux` first, then install with `npm install -g @anthropic-ai/claude-code@latest --force`. Do not use `sudo`.
995995 
996996**`exec: node: not found` when running `claude`.** Your WSL environment is likely using the Windows installation of Node.js. Confirm with `which npm` and `which node`: paths starting with `/mnt/c/` are Windows binaries, while Linux paths start with `/usr/`. To fix this, install Node via your Linux distribution's package manager or via [`nvm`](https://github.com/nvm-sh/nvm).
997997 
from line 1078
10781078 3. Reinstall:
10791079 
10801080 ```bash theme={null}
1081 npm install -g @anthropic-ai/claude-code
1081 npm install -g @anthropic-ai/claude-code@latest
10821082 ```
10831083 
10841084 If this or step 1 fails with `EACCES`, switch to the native installer instead of rerunning it with `sudo`. Claude Code runs npm without `sudo` when it updates itself, so automatic updates would fail the same way.
from line 1089
10891089 
10901090### npm `ENOTEMPTY` error during update or reinstall
10911091 
1092When you run `npm install -g @anthropic-ai/claude-code` over an existing installation, npm can fail while moving the old package directory aside:
1092When you run `npm install -g @anthropic-ai/claude-code@latest` over an existing installation, npm can fail while moving the old package directory aside:
10931093 
10941094```text theme={null}
10951095npm error code ENOTEMPTY
from line 1123
11231123Then reinstall. On npm 12, follow [Fix an npm 12 install](#fix-an-npm-12-install). Otherwise, run:
11241124 
11251125```bash theme={null}
1126npm install -g @anthropic-ai/claude-code
1126npm install -g @anthropic-ai/claude-code@latest
11271127```
11281128 
11291129Confirm with `claude --version`, which prints a version number such as `2.1.211 (Claude Code)`.
Feedback