aloof-psychiatrist-45078
05/02/2023, 4:07 AMRUN npx cypress install && npx cypress run
In the logs below, the terminal seems not waiting for the cypress to finish install, and tries to run cypress directly causing error
11:58:28 STEP 13/14: RUN npx cypress install && npx cypress run
11:58:28 Installing Cypress (version: 12.11.0)
11:58:28
11:58:28 [STARTED] Task without title.
11:58:28
11:58:28 > consulting-one-ui@ cy:run /opt/app-root/src
11:58:28 > cypress run
11:58:28
11:58:28 No version of Cypress is installed in: /root/.cache/Cypress/12.11.0/Cypress
11:58:28
11:58:28 Please reinstall Cypress by running: cypress install
11:58:28
11:58:28 ----------
11:58:28
11:58:28 Cypress executable not found at: /root/.cache/Cypress/12.11.0/Cypress/Cypress
11:58:28
11:58:28 ----------aloof-psychiatrist-45078
05/02/2023, 4:08 AM$ npx cypress install --force
Cypress 12.11.0 is installed in C:\Users\random\AppData\Local\Cypress\Cache\12.11.0
Installing Cypress (version: 12.11.0)
ā Downloaded Cypress
ā Unzipped Cypress
ā Finished Installation C:\Users\enhaong\AppData\Local\Cypress\Cache\12.11.0
You can now open Cypress by running: node_modules\.bin\cypress open
https://on.cypress.io/installing-cypressechoing-tent-95037
05/02/2023, 5:05 PM# point Cypress at the /root/cache no matter what user account is used
# see https://on.cypress.io/caching
ENV CYPRESS_CACHE_FOLDER=/root/.cache/Cypress
RUN npm install -g "cypress@12.5.1"
RUN cypress verifyaloof-psychiatrist-45078
05/03/2023, 1:40 AMaloof-psychiatrist-45078
05/03/2023, 2:42 AM