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.
For me, I received this 403 error message when I had just created my NPM account, but not verified the email address on my account. I found the verification request email from NPM, clicked the link, and magically was able to publish my first package.
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.
Happens either because of a duplicate package name or because you never verified your email address.
Check if you are publishing the same version. I needed to update the version of the package and npm publish
again. From the Forbidden error that I was getting it was not obvious.
check your email registration and confirm verification
finnaly repeat publish your package
and i hope will work 😁
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With