由于Google匿名使用数据问题,CircleCI构建失败 [英] CircleCI build failed due to Google anonymous usage data question

查看:345
本文介绍了由于Google匿名使用数据问题,CircleCI构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建CircleCI时,在执行sudo npm install -g @angular/cli的过程中,Google要求共享匿名数据使用情况(是/否).如何避免在CircleCI中提示该问题?

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 ?

码头工人的图像是circleci/node:8 命令run: sudo npm install -g @angular/cli

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

错误消息:

#!/bin/bash -eo pipefail

#!/bin/bash -eo pipefail

sudo npm install -g @ angular/cli

sudo npm install -g @angular/cli

/usr/local/bin/ng->/usr/local/lib/node_modules/@ angular/cli/bin/ng @ angular/cli @ 8.0.1安装后/usr/local/lib/node_modules/@ angular/cli 节点./bin/postinstall/script.js ?您是否想根据 https://policies.google上的Google隐私权政策与Google的Angular团队共享匿名使用情况数据. .com/privacy ?有关更多详细信息以及如何更改此设置,请参见 http://angular.io/analytics . (是/否)?

/usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng @angular/cli@8.0.1 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) ?

您是否想根据Google的隐私权政策与Google的Angular团队共享匿名使用情况数据,网址为 https://Policies.google.com/privacy ?有关更多详细信息以及如何更改此设置,请参见 http://angular.io/analytics . (是/否)?

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) ?

您是否想根据Google的隐私权政策与Google的Angular团队共享匿名使用情况数据,网址为 https://Policies.google.com/privacy ?有关更多详细信息以及如何更改此设置,请参见 http://angular.io/analytics . (y/N)太长,无输出(超过10m0s)

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)

这个问题是关于CircleCI的构建和这不是我的解决方案.我无法在CircleCI中实现此解决方案.

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

推荐答案

您可以通过定义环境变量NG_CLI_ANALYTICS=ci来让您的用户知道它是在CI中构建的.或仅使用NG_CLI_ANALYTICS=false完全禁用使用情况分析问题.

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.

请参阅 angular- cli/docs/design/analytics.md:禁用使用情况分析以获取更多信息.

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

这篇关于由于Google匿名使用数据问题,CircleCI构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆