Question

Trying to update my npm package. Both the npm website and npm info say that I'm at version 0.6.1.

But when I bump the version to 0.7.0, I get a "cannot publish over existing version" error:

npm ERR! publish fail Cannot publish over existing version.
npm ERR! publish fail Update the 'version' field in package.json and try again.
npm ERR! publish fail
npm ERR! publish fail If the previous version was published in error, see:
npm ERR! publish fail     npm help unpublish
npm ERR! publish fail
npm ERR! publish fail To automatically increment version numbers, see:
npm ERR! publish fail     npm help version

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "publish" "."
npm ERR! cwd /Users/evanhahn/HumanizeDuration.js
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! code EPUBLISHCONFLICT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/evanhahn/HumanizeDuration.js/npm-debug.log
npm ERR! not ok code 0

I've never pushed 0.7.0.

I also tried pushing 0.7.1 and it gave the same error.

Thoughts?

Was it helpful?

Solution

Updating to the latest npm fixed my problem.

OTHER TIPS

Can't see or publish packages with Verdaccio

if it's not working to update npm

--> try this,

if you don't have the same package on the registry and your local package it makes you conflict cuz they are not the same or no existing package

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top