Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 205
Smally Avatar asked Mar 01 '19 18:03

Smally


5 Answers

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.

like image 186
Henry Mueller Avatar answered Oct 08 '22 14:10

Henry Mueller


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.

like image 32
Shodipo Ayomide Avatar answered Oct 08 '22 15:10

Shodipo Ayomide


Happens either because of a duplicate package name or because you never verified your email address.

like image 6
Alon Carmel Avatar answered Oct 08 '22 14:10

Alon Carmel


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.

like image 5
Vallerious Avatar answered Oct 08 '22 13:10

Vallerious


check your email registration and confirm verification
finnaly repeat publish your package
and i hope will work 😁

like image 5
Muhammad Ichsan Avatar answered Oct 08 '22 15:10

Muhammad Ichsan