Properly buffer NPM output