尝试更新我的npm包。 the npm website和npm info
都表示我的版本为0.6.1。
但是当我将版本提升到0.7.0时,我得到一个"无法发布现有版本"错误:
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
我从未推过0.7.0。
我也试过推0.7.1并且它也给出了同样的错误。
思想?
答案 0 :(得分:1)
更新到最新的npm
解决了我的问题。