Skip to content

Commit d075471

Browse files
zkataeschright
authored andcommitted
outdated: fix rendering for global dependencies (#173)
PR-URL: #173 Fixes: https://npm.community/t/npm-outdated-throw-an-error-cannot-read-property-length-of-undefined/5929 Credit: @zkat Reviewed-By: @aeschright
1 parent 6b1a9da commit d075471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/outdated.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function makePretty (p, opts) {
149149
has || 'MISSING',
150150
want,
151151
latest,
152-
deppath
152+
deppath || 'global'
153153
]
154154
if (long) {
155155
columns[5] = type

0 commit comments

Comments
 (0)