NPM Publish Registry - 403 Forbidden - "You don't have permission to publish "..."

Smally picture Smally · Mar 1, 2019 · Viewed 12k times · Source

I've been trying to publish my package to the NPM Registry.
I get an error that I am not allowed to push my package to the registry.

403 Forbidden - PUT https://registry.npmjs.org/qdb - You do not have permission to publish "qdb". Are you logged in as the correct user?

I wonder why.

Answer

Shodipo Ayomide picture Shodipo Ayomide · Apr 15, 2019

It looks like a package with that name was already published by someone else, so you'd need to use a different name in your package.json file and then npm publish again.

Else, you can look if you're trying to publish the same version that's already published.