Can't enable automatic updates on Windows with the "manually fix permissions on current npm prefix" option

Resolved 💬 3 comments Opened Feb 26, 2025 by evanwon Closed Feb 26, 2025

Platform: Windows 11 24H2
Shell: Git CLI (MINGW64)
npm version: 10.9.2
node version: 22.14.0
Claude Code: v0.2.9

When I run Claude Code, I get the "Enable automatic updates?" prompt.

When I select "Manually fix permissions on current npm prefix (Recommended)", it gives me the following command to run:

Run this command in your terminal:                                                                               │
│     icacls "" /grant "%USERNAME%:(OI)(CI)F"                                                                          │
│     After running the command, restart Claude Code 

Running this command as-is yields:

C:\Users\evanw\src\claude-test>icacls "" /grant "%USERNAME%:(OI)(CI)F"
: The system cannot find the path specified.
Successfully processed 0 files; Failed processing 1 files

Which I'm assuming is because of the empty quotes after icacls, but I'm not sure. Since the command fails, I cannot enable automatic updats.

View original on GitHub ↗

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