Can't publish the version before npm?

Trying to update my npm package. Both are npm sites and npm infosay I'm at version 0.6.1.

But when I use the version before 0.7.0, I get the error "I can not publish on top of the existing version":

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 never pushed 0.7.0.

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

Thoughts?

+4
source share
1 answer

Updating to the latest has been npmfixed by my problem.

+1
source

Source: https://habr.com/ru/post/1535081/


All Articles