BEtter handling of mixed output from npm install --json