EPUBLISHCONFLICT npm Origin: Build & delivery OSI layer 7 · Application Last updated 12 Oct 2026

npm ERR! 403 — You cannot publish over the previously published versions: 1.2.3

That version number has already been published (or unpublished) and can’t be reused.

Exact message you may see cannot publish over the previously published versions
Seen on: npm

Meaning

npm versions are immutable. Bump the version before publishing again.

Common causes

  • Forgot to bump the version
  • CI re-running a publish
  • Unpublished version numbers can’t be reused

⚡ Quick fix

  1. npm version patch (or minor/major) and publish again
  2. Guard CI to publish only when the version changed

Detailed fix by platform

npm

  1. npm version patch && npm publish

How to diagnose

  1. Version — Already on npm (npm view pkg versions)?
  2. Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):

cb() never called — npm ERR! cb() never called! (npm)cb() never calledclient version is too new — Error response from daemon: client version 1.45 is too new. Maximum supported API version is 1.41 (Docker)client version is too…Corepack keyid — Error: Cannot find matching keyid (Corepack signature verification) (npm)Corepack keyidE401 — npm ERR! code E401 — Unable to authenticate, need: Basic realm / Incorrect or missing password (npm)E401E402 — npm ERR! code E402 — 402 Payment Required - PUT https://registry.npmjs.org/@scope%2fpkg - You must sign up for private packages (npm)E402E403 — npm ERR! code E403 — 403 Forbidden - PUT https://registry.npmjs.org/x - You do not have permission to publish (npm)E403ENEEDAUTH — npm ERR! code ENEEDAUTH — need auth This command requires you to be logged in (npm)ENEEDAUTHEOTP — npm ERR! code EOTP — This operation requires a one-time password from your authenticator (npm)EOTPEPUBLISHC…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.