Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that @ angular/cli installation needs to confirm whether to agree to use data collection when docker builds angular applications

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This post is about how to fix the problem of @angular/cli installation needing to confirm consent to data collection when docker builds angular apps. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

When installing @angular/cli, you need to confirm your consent to data collection.

> @angular/cli@9.1.13 postinstall /web/node_modules/@angular/cli> node ./ bin/postinstall/script.js? Would you like to share anonymous usage data with the Angular Team at Google underGoogle's Privacy Policy at https://policies.google.com/privacy? For more details andhow to change this setting, see http://angular.io/analytics. (y/N)

There are no problems during daily use, but when you need to build angular apps in docker, the docker build process is suspended and the compilation cannot be completed.

At this time, you need to add the following configuration to Dockerfile. The default configuration is to close cli to collect usage data.

RUN export NG_CLI_ANALYTICS=false

With the above environment variable added, there is no pause in feedback when building mirrors.

Thank you for reading! About "how to solve docker angular application @angular/cli installation needs to confirm whether to agree to use data collection problem" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report