npm-packages linter: Don't try to parse the output of npm list if require('child_process').spawn returned an error.