From 5e174c6e50ed57c685412b83814b4d6eaeda81eb Mon Sep 17 00:00:00 2001 From: shane-walker Date: Sat, 24 Sep 2016 01:31:40 -0500 Subject: [PATCH] Fixes #1375, will check for new and outdated packages when running. (#3020) --- packaging/language/npm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/language/npm.py b/packaging/language/npm.py index 53ce1e77c5e..e15bbea903e 100644 --- a/packaging/language/npm.py +++ b/packaging/language/npm.py @@ -252,7 +252,10 @@ def main(): elif state == 'latest': installed, missing = npm.list() outdated = npm.list_outdated() - if len(missing) or len(outdated): + if len(missing): + changed = True + npm.install() + if len(outdated): changed = True npm.update() else: #absent