slushjs / gulp-install

Automatically install npm and bower packages if package.json or bower.json is found in the gulp file stream respectively
MIT License
106 stars 46 forks source link

Support silent npm install #44

Closed balassy closed 7 years ago

balassy commented 7 years ago

I've using this package to do npm install, and I would like to run it without displaying the summary at the end of the run. I've tried to add --silent and --quiet to the args option, but the summary of the installed packages are always written to the output.

Thanks for creating and maintaining this package!

joakimbeng commented 7 years ago

It's now possible to pass any argument to npm like so:

gulp.src('...').pipe(install({
  npm: ['--any', '--arg', 'and', 'more']
}))

I don't know how to completely turn of the npm output, but maybe the loglevel option is an alternative? (which is not possible to specify)

balassy commented 7 years ago

Thank you, Joakim!