Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CircleCI build failed due to Google anonymous usage data question

While CircleCI build, in the processes of executing sudo npm install -g @angular/cli Google asked to share anonymous data usage yes/no question. How can I avoid prompt of that question in CircleCI ?

Image of docker is circleci/node:8 Command run: sudo npm install -g @angular/cli

Error message:

#!/bin/bash -eo pipefail

sudo npm install -g @angular/cli

/usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng @angular/[email protected] postinstall /usr/local/lib/node_modules/@angular/cli node ./bin/postinstall/script.js ? Would you like to share anonymous usage data with the Angular Team at Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more details and how to change this setting, see http://angular.io/analytics. (y/N) ?

Would you like to share anonymous usage data with the Angular Team at Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more details and how to change this setting, see http://angular.io/analytics. (y/N) ?

Would you like to share anonymous usage data with the Angular Team at Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more details and how to change this setting, see http://angular.io/analytics. (y/N) Too long with no output (exceeded 10m0s)

This question is about CircleCI build and this is not a solution for me. I can't get this solution implemented in CircleCI.

like image 564
Sasitha Iresh Avatar asked Jun 06 '19 12:06

Sasitha Iresh


1 Answers

You can let your angular know that it's being built in CI by defining environmental variable NG_CLI_ANALYTICS=ci. Or just disable usage analytics question completely with NG_CLI_ANALYTICS=false.

Refer to angular-cli/docs/design/analytics.md:Disabling Usage Analytics for more information.

like image 132
Filipp Shestakov Avatar answered Oct 14 '22 21:10

Filipp Shestakov