npm module compatible with npm5 (#26582)

* npm module compatible with npm5

Uses the `--long` flag in `npm list` to get the `missing` key back.

* npm: add integration tests

* npm: test the module with npm 4 as well

* Remove debug tasks, use variables

* Use tests instead of filters

* Adds xcambar as a maintainer of the npm module
This commit is contained in:
Xavier Cambar 2018-01-19 15:47:43 +01:00 committed by René Moser
parent 386c6b4051
commit cea681a5c0
7 changed files with 117 additions and 2 deletions

View file

@ -185,7 +185,7 @@ class Npm(object):
return ''
def list(self):
cmd = ['list', '--json']
cmd = ['list', '--json', '--long']
installed = list()
missing = list()