The Package Name You Want Is Already Taken: Your Options
If the name you want is already registered on npm or PyPI, your realistic options are to publish under a scope or prefix you control, choose a different name, or politely ask the current owner whether they would transfer it. Formal reclaim processes exist on some registries, but they are slow, narrow and not something to plan a release around. Before you do any of that, check that the name really is taken in the form the registry cares about, because registries compare names after normalising them, and a name that looks free can still be blocked.
First, check what "taken" means on each registry
Registries do not compare names letter for letter. On PyPI, names are normalised as described in the Python packaging specifications: case is ignored and runs of hyphens, underscores and dots are treated as the same separator, so My_Package, my-package and my.package are one project. npm requires new unscoped names to be lowercase and refuses names that are too similar to existing packages, for example ones that differ only by punctuation. Our essay on package naming conventions covers each registry's idea of "the same name" in more detail.
So the quick checks are: search the registry, try the normalised form, and remember that npm can still refuse a name at publish time for being too similar to an existing package, even when a search shows nothing identical. Do not publish a real placeholder just to hold a name; registries discourage squatting, and an empty package can confuse people.
Option 1: use a scope or prefix you control
On npm, a scoped name such as @yourorg/widget is unique to your user or organisation, so it is free even when widget belongs to someone else. Scoped packages are private by default when first published, so the first public release needs npm publish --access public or the equivalent setting in publishConfig. Our session notes on scoped packages walk through the setup.
{
"name": "@yourorg/widget",
"publishConfig": { "access": "public" }
}
PyPI has no scopes, but a consistent organisation prefix, such as yourorg-widget, gives a similar effect and groups your projects in search results.
Option 2: pick a better name
A taken name is often a sign the name was too generic to begin with. A more specific name can help users understand what the package does before they click. When choosing:
- Prefer descriptive over clever, so the name hints at what the package does.
- Avoid names one keystroke away from a popular package; that pattern is associated with typosquatting, as our plain-English summary of typosquatting research explains, and registries may block it.
- Avoid trademarks you do not own, including product and company names.
- Check the name on every registry you might publish to later, plus the repository host, so the project can use one name everywhere.
- Read it aloud. If people mishear or misspell it, they will install the wrong thing.
Option 3: ask the current owner
Many taken names belong to old experiments or abandoned projects whose authors are happy to hand them over. A short, polite message through the contact details on the package or its repository is the first step. Say who you are, what you plan to publish and why the name matters, and offer to keep the old versions untouched. Be prepared for no answer or a refusal; the owner owes you nothing.
If the owner agrees, the transfer is done through the registry's own ownership tools, and both of you should follow the registry's documentation so the history and old versions stay intact. Treat it like any change of hands for a published package and tell users: our plan for renaming a published package describes how to communicate a change of name or ownership.
Option 4: the registry's formal process
Some registries have a formal route for abandoned names. On PyPI, PEP 541, the Package Index Name Retention policy, sets out when a project may be considered abandoned and how a transfer request is made through PyPI's support process. It has strict conditions, such as unreachable owners and no recent activity, and requests can take a long time. npm publishes its own policies on package names and disputes, and these have changed over the years, so read the current version on npm's documentation site rather than relying on older blog posts. In both cases, inactivity alone is not a guarantee, and a project with real users is very unlikely to be handed over.
Because of that, the formal process works best as a background request while you publish under a scope or alternative name. If the transfer comes through later, you can follow the renaming plan to move users across.
A decision checklist
- Confirm the name is taken in its normalised form.
- Decide whether a scope or prefix meets your needs. If yes, publish and stop here.
- If the name really matters, contact the owner, and keep a record of the exchange.
- If the project looks abandoned and the registry has a formal policy, file a request in parallel.
- Never publish under a near-copy of the taken name to capture its traffic.
Frequently asked questions
Can I get an unused npm package name transferred to me?
Possibly, if the owner agrees. Registry-led transfers are limited and governed by npm's current published policies, so do not count on one. A scoped name is the dependable alternative.
Why does PyPI say my name is taken when I cannot find it?
PyPI normalises names, ignoring case and treating hyphens, underscores and dots as equivalent. Your name may match an existing project in that normalised form.
Is it acceptable to register names in advance?
Registries generally discourage holding names with empty packages. Publish when you have something real to release.
More pre-publish decisions are collected in the Learn hub.