diff options
Diffstat (limited to 'deps/npm/lib/utils/error-handler.js')
-rw-r--r-- | deps/npm/lib/utils/error-handler.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/npm/lib/utils/error-handler.js b/deps/npm/lib/utils/error-handler.js index a82f97ec1..a4725a31f 100644 --- a/deps/npm/lib/utils/error-handler.js +++ b/deps/npm/lib/utils/error-handler.js @@ -236,6 +236,13 @@ function errorHandler (er) { ].join("\n")) break + case "ENOPACKAGEJSON": + log.error("package.json", [er.message + ,"This is most likely not a problem with npm itself." + ,"npm can't find a package.json file in your current directory." + ].join("\n")) + break + case "ENOTSUP": if (er.required) { log.error("notsup", [er.message |