From d07547154eb8a88aa4fde8a37e128e1e3272adc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Tue, 19 Mar 2019 11:23:48 -0700 Subject: [PATCH] outdated: fix rendering for global dependencies (#173) PR-URL: https://github.com/npm/cli/pull/173 Fixes: https://npm.community/t/npm-outdated-throw-an-error-cannot-read-property-length-of-undefined/5929 Credit: @zkat Reviewed-By: @aeschright --- 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