Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't publish version to npm?

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?

like image 459
Evan Hahn Avatar asked Apr 04 '14 18:04

Evan Hahn


1 Answers

Updating to the latest npm fixed my problem.

like image 112
Evan Hahn Avatar answered Oct 12 '22 06:10

Evan Hahn