Stop bower from asking for statistics when installing

jsd picture jsd · Mar 13, 2014 · Viewed 11.3k times · Source

I'm trying to set up an automated package build for an app which uses bower. When it gets to bower install in the postinstall, bower prompts:

[?] May bower anonymously report usage statistics to improve the tool over time? (Y/n)

This is screwing up the automated scripts. I could write an expect script to deal with this but I'd rather not if I don't have to. Is there a way to get it to shut up?

Answer

Christopher Currie picture Christopher Currie · Mar 25, 2014

As was noted in a comment, this was raised as an issue at github. At the end of that issue there's reference to a minor note at the end of the CHANGELOG comments:

NOTE: It's advisable that users use --config.interactive=false on automated scripts.