【发布时间】:2018-06-05 17:49:17
【问题描述】:
更新到赛普拉斯3.0 时,我在 CI 中收到此错误,表示未安装赛普拉斯,但我在我的 cypress run 命令之前运行npm install。错误:
No version of Cypress is installed in:
/home/ubuntu/.cache/Cypress/3.0.1/Cypress
Please reinstall Cypress by running: cypress install
----------
为什么赛普拉斯找不到赛普拉斯可执行文件?
这是我的circle.yml:
build:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v1-npm-deps
- run: npm install
- save_cache:
key: v1-npm-deps-{{ checksum "package.json" }}
paths:
- node_modules
- ~/.cache
- ~/.npm
- run: npm test
- run: npm run build
- persist_to_workspace:
root: /tmp/workspace
paths:
- .circleci/deploy.sh
- .circleci/e2e-test.sh
- package.json
- cypress.json
- node_modules/
- build/*
- cypress/*
【问题讨论】:
标签: continuous-integration e2e-testing cypress