Evandro Pomatti
Evandro Pomatti

Reputation: 15164

npm publish error - "npm ERR! 403 403 Forbidden - package version that is forbidden"

I tried to publish a new version of my package no npm and got this error:

npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/yolo-coords - You cannot publish over the previously published versions: 1.0.4.
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.

My lib is very short and the message doesn't make sense:

In most cases, you or one of your dependencies are requesting a package version that is forbidden by your security policy

Upvotes: 0

Views: 15019

Answers (4)

Vivek Aasaithambi
Vivek Aasaithambi

Reputation: 929

It can happen, if The package name which you have mentioned in the package.json, is already owned owned by someone. Try changing the package name and publish.

Upvotes: 0

Shyamm24
Shyamm24

Reputation: 19

try verifying your email address.

Upvotes: 0

bouchahda jouda
bouchahda jouda

Reputation: 11

try with the command 'npm publish --access=public'

Upvotes: 0

Evandro Pomatti
Evandro Pomatti

Reputation: 15164

The problem was that I forgot to bump the package.json version, which was 1.0.4:

{
  "name": "yolo-coords",
  "version": "1.0.6"
}

Upvotes: 1

Related Questions