diff --git a/lib/ansible/modules/extras/packaging/language/npm.py b/lib/ansible/modules/extras/packaging/language/npm.py index d804efff33..a52b7599d8 100644 --- a/lib/ansible/modules/extras/packaging/language/npm.py +++ b/lib/ansible/modules/extras/packaging/language/npm.py @@ -250,7 +250,7 @@ def main(): outdated = npm.list_outdated() if len(missing) or len(outdated): changed = True - npm.install() + npm.update() else: #absent installed, missing = npm.list() if name in installed: