diff options
Diffstat (limited to 'deps/npm/lib/outdated.js')
-rw-r--r-- | deps/npm/lib/outdated.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/lib/outdated.js b/deps/npm/lib/outdated.js index a4a0d15abb..546d14b134 100644 --- a/deps/npm/lib/outdated.js +++ b/deps/npm/lib/outdated.js @@ -357,7 +357,7 @@ function shouldUpdate (args, tree, dep, has, req, depth, pkgpath, cb, type) { } } - if (curr.version !== wanted) { + if (!curr || curr.version !== wanted) { doIt(wanted, latest) } else { skip() |