简体   繁体   中英

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?

更新到最新的npm解决了我的问题。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM