From ecccce9f333625e36c7a8c2182fbfd67cc51dc4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Thu, 7 Mar 2019 10:20:06 -0800 Subject: [PATCH] outdated: fix rendering for global dependencies Fixes: https://npm.community/t/npm-outdated-throw-an-error-cannot-read-property-length-of-undefined/5929 --- lib/outdated.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outdated.js b/lib/outdated.js index 197b71962500e..1b9e8cf73554c 100644 --- a/lib/outdated.js +++ b/lib/outdated.js @@ -149,7 +149,7 @@ function makePretty (p, opts) { has || 'MISSING', want, latest, - deppath + deppath || 'global' ] if (long) { columns[5] = type