4

我们有一组角度库,我们在构建服务器中构建并发布到工件。

间歇性(如 50 个构建中的 1 个),构建失败并出现以下错误。 ENOENT: no such file or directory, chmod 'dist/acme/library/bundles/acme-library.umd.min.js.map'

这完全随机发生。我们的构建构建了产品的所有内容 - 包括 C 库、Java 项目、Angular 项目等。整个源代码从 Perforce 中检出,源代码在 NFS 挂载目录中检出,检出源代码和构建可用于每个构建都通过 NFS 安装目录。

如果有人能提出为什么会发生下面这样的错误,那会有很大的帮助吗? 它似乎在抱怨应该在 ng 构建期间刚刚创建的文件。

Building Angular Package
Building entry point '@acme/library'
Cleaning build directory
Rendering Stylesheets
Rendering Templates
Compiling TypeScript sources through ngc
Bundling to FESM15
'QueryList' is imported from external module '@angular/core' but never used
'ClrWizard' is imported from external module '@clr/angular' but never used
Bundling to FESM5
Bundling to UMD
No name was provided for external module '@clr/angular' in options.globals ??? guessing 'angular'
Minifying UMD bundle
WARN: Side effects in initialization of unused variable Mb [0:745,12]
WARN: Dropping duplicated definition of variable Lc [0:1101,24]
WARN: Dropping duplicated definition of variable Mc [0:1102,24]
WARN: Dropping duplicated definition of variable Nc [0:1103,29]
WARN: Side effects in initialization of unused variable Ie [0:1647,12]
Relocating source maps
Copying staged files

BUILD ERROR
ENOENT: no such file or directory, chmod 'dist/acme/library/bundles/acme-library.umd.min.js.map'
Error: ENOENT: no such file or directory, chmod 'dist/acme/library/bundles/acme-library.umd.min.js.map'

An unhandled exception occurred: ENOENT: no such file or directory, chmod 'dist/acme/library/bundles/acme-library.umd.min.js.map'
See "/tmp/ng-Hje1zE/angular-errors.log" for further details.
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @acme/acme-ui@0.0.1-SNAPSHOT.12345 build:acme:feature:library: `ng build acme-library`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the @acme/acme-ui@0.0.1-SNAPSHOT.12345 build:acme:feature:library script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-03-24T21_30_49_058Z-debug.log


4

0 回答 0