diff options
Diffstat (limited to 'deps/npm/lib/utils/error-handler.js')
-rw-r--r-- | deps/npm/lib/utils/error-handler.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/deps/npm/lib/utils/error-handler.js b/deps/npm/lib/utils/error-handler.js index 51394f10ce..88ce742798 100644 --- a/deps/npm/lib/utils/error-handler.js +++ b/deps/npm/lib/utils/error-handler.js @@ -156,9 +156,13 @@ function errorHandler (er) { case "EPUBLISHCONFLICT": er.code = "EPUBLISHCONFLICT" log.error("publish fail", ["Cannot publish over existing version." - ,"Bump the 'version' field, set the --force flag, or" - ," npm unpublish '"+er.pkgid+"'" - ,"and try again" + ,"Update the 'version' field in package.json and try again." + ,"" + ,"If the previous version was published in error, see:" + ," npm help unpublish" + ,"" + ,"To automatically increment version numbers, see:" + ," npm help version" ].join("\n")) break |