# Couldn't read a file

What "couldn't read a file" means and how to fix it.

```text
error: couldn't read packages/web/package.json: Access is denied. (os error 5)
hint: Check that the file exists and that you have permission to open it.
```

## Why it happens

Axle found a file it needs, such as a package's `package.json` or `axle.toml`, an agent's `.mcp.json` for `axle setup agents`, a change file or a file `alsoUpdate` lists for `axle release`, or the lockfile for `axle prune`, but the system wouldn't let it read it. A file `alsoUpdate` lists that isn't there at all is reported the same way. The message ends with the system's reason. For `axle login`, "the token couldn't be read" means the token typed or piped in didn't arrive. If the folder you ran Axle in has been deleted or can't be read, the message says "couldn't read the current folder" instead.

## How to fix it

Check the file's permissions, and that no other program has it locked.
