【发布时间】:2021-12-22 13:05:06
【问题描述】:
所以我们有一个 monorepo,它有两个使用 Angular 的不同项目。我们还有一个构建管道来自动化集成过程。我遇到的问题是 ngcc 不支持并行执行。我想在并行进程开始之前手动运行 ngcc 命令,但我没找到怎么做?
该项目使用 Angular 11,我在全球范围内安装了 @angular/cli@12.2.1,所以我期待 ngcc 成为那里工具的一部分,但到目前为止还没有运气。我只是收到此错误:-bash: ngcc: command not found
如果有人想知道如果我只是尝试并行运行 ng build 会出现以下错误:
ERROR in ngcc is already running at process with id 2113.
If you are running multiple builds in parallel then you might try pre-processing your node_modules via the command line ngcc tool before starting the builds.
(If you are sure no ngcc process is running then you should delete the lock-file at /Users/runner/work/1/s/frontend/apps/MY_APP/node_modules/@angular/compiler-cli/ngcc/__ngcc_lock_file__.)
【问题讨论】:
标签: angular angular-cli angular11 angular12