npmregistrycommand-line-interfacepublish

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


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.


Solution

  • 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.