# Two packages share a name

What "two packages are both named" means and how to fix it.

```text
error: two packages are both named @acme/ui: packages/ui/package.json and packages/ui-old/package.json
hint: Rename one of the two so every name is unique.
```

When one of the two is a [project](https://axlers.dev/docs/reference/configuration.md#projects) named in an `axle.toml`, the message says "two projects" instead:

```text
error: two projects are both named api: packages/api/package.json and services/api/axle.toml
```

## Why it happens

Two packages or projects have the same name, so Axle can't tell which one another depends on. This often happens after copying a folder.

## How to fix it

Rename one of the two, or remove the copy you don't need. A package's name is `name` in its `package.json`, and a project's is `name` in its `axle.toml`.
