Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #2606 Better error message when not logged in

  • Loading branch information...
commit 76d56d979d14fca53b2d1a849515b2e66f594c8e 1 parent f6d7ae5
@isaacs isaacs authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/utils/error-handler.js
View
6 lib/utils/error-handler.js
@@ -197,6 +197,12 @@ function errorHandler (er) {
,"Move it away, and try again."].join("\n"))
break
+ case "ENEEDAUTH":
+ log.error("need auth", [er.message
+ ,"You need to authorize this machine using `npm adduser`"
+ ].join("\n"))
+ break
+
case "ENOTSUP":
if (er.required) {
log.error("notsup", [er.message
Please sign in to comment.
Something went wrong with that request. Please try again.