当目标在“GitLab CI”上压缩时,电子锻造制造商失败

问题描述

错误仅在电子锻造机在 GitLab CI 上运行时引起:

Making for the following targets: zip
 - Making for target: zip - On platform: linux - For arch: x64
 ✖ Making for target: zip - On platform: linux - For arch: x64
 An unhandled error has occurred inside Forge:
 An error occured while making for target: zip
 spawn zip ENOENT
 Error: spawn zip ENOENT
     at Process.ChildProcess._handle.onexit (node:internal/child_process:281:19)
     at onErrorNT (node:internal/child_process:481:16)
     at processticksAndRejections (node:internal/process/task_queues:81:21)
 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
 error Command Failed with exit code 1.
 ERROR: Job Failed: command terminated with exit code  1

解决方法

运行以下命令以在您的管道中安装 zip

apt-get update && apt-get install --no-install-recommends zip