mirror of
https://github.com/zhigang1992/npm.git
synced 2026-05-27 17:28:27 +08:00
show better error message for proxy users
This will hopefully enable the npm users behind a proxy to help themselves in case of a proxy/network issue.
This commit is contained in:
@@ -225,6 +225,7 @@ function errorHandler (er) {
|
||||
break
|
||||
|
||||
case "ENOTFOUND":
|
||||
case "ETIMEDOUT":
|
||||
log.error("network", [er.message
|
||||
,"This is most likely not a problem with npm itself"
|
||||
,"and is related to network connectivity."
|
||||
|
||||
Reference in New Issue
Block a user