小编roa*_*ner的帖子

如何解决“安装了 cypress npm 包,但缺少 Cypress 二进制文件”。

我正在尝试在 GitLab CI runner 中下载并安装 Cypress 并获得此错误输出:

The cypress npm package is installed, but the Cypress binary is missing.
We expected the binary to be installed here: /root/.cache/Cypress/4.8.0/Cypress/Cypress
Reasons it may be missing:
- You're caching 'node_modules' but are not caching this path: /root/.cache/Cypress
- You ran 'npm install' at an earlier build step but did not persist: /root/.cache/Cypress
Properly caching the binary will fix this error and avoid downloading and unzipping Cypress.
Alternatively, you can run 'cypress install' to …
Run Code Online (Sandbox Code Playgroud)

npm docker gitlab-ci cypress

9
推荐指数
2
解决办法
6991
查看次数

标签 统计

cypress ×1

docker ×1

gitlab-ci ×1

npm ×1