Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ls.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ls.js b/lib/ls.js
index 8d5cd8087..c513e3b86 100644
--- a/lib/ls.js
+++ b/lib/ls.js
@@ -146,7 +146,8 @@ function getLite (data, noname) {
lite.problems.push('extraneous: ' + getPackageId(data) + ' ' + (data.path || ''))
}
- if (data.error && data.path !== path.resolve(npm.globalDir, '..')) {
+ if (data.error && data.path !== path.resolve(npm.globalDir, '..') &&
+ (data.error.code !== 'ENOENT' || noname)) {
lite.invalid = true
lite.problems = lite.problems || []
var message = data.error.message