当前位置: 首页 > 工具软件 > Share This > 使用案例 >

Would you like to share anonymous usage data about this project with the Angular Team at Google unde

钦景胜
2023-12-01

项目场景:

项目中用到了angular/cli


问题描述

安装angular/cli 过程中一直提示

Would you like to share anonymous usage data about this project 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)

这个问题,在手动安装的情景下,影响很小,但是如果是在脚本安装的情况下,就有很大的问题,不可能每次手输yes。而且某些ci情景下,没有可以输入的地方。


原因分析:

经过查找资料,这个应该是一个bug,官方给出的解决方案,我试的无效
https://angular.io/analytics 本地版本angular/cli@9.0.2
在angular项目的issue列表中有关这个问题的讨论,并找到了解决方案
https://github.com/angular/angular-cli/issues/16784


解决方案:

解决方案就是设置

export NG_CLI_ANALYTICS=“false”

这个对我这个版本有效。

 类似资料:

相关阅读

相关文章

相关问答