gpt4 book ai didi

angular - 由于 Google 匿名使用数据问题,CircleCI 构建失败

转载 作者:行者123 更新时间:2023-12-02 15:33:39 24 4
gpt4 key购买 nike

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

docker的镜像是circleci/node:8命令运行:sudo npm install -g @angular/cli

错误消息:

#!/bin/bash -eo pipefail

sudo npm install -g @angular/cli

/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/clinode ./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)

这个问题是关于 CircleCI 构建和 this对我来说不是一个解决方案。我无法在 CircleCI 中实现此解决方案。

最佳答案

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

引用angular-cli/docs/design/analytics.md:Disabling Usage Analytics了解更多信息。

关于angular - 由于 Google 匿名使用数据问题,CircleCI 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56477891/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com