You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ docker run -t -d -u 1013:1015 -w /var/lib/jenkins/workspace/*** cypress/browsers:node16.18.0-chrome107-ff106-edge cat
$ docker top 252dba70cbbf913bf6d23607236bb379e0d2802990b1b2cbadb923d916857720 -eo pid,comm
[Pipeline] {
[Pipeline] sh
+ npm ci
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /.npm
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 1013:1015 "/.npm"
npm ERR! Log files were not written due to an error writing to the directory: /.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
(the above happened with cypress/browsers:node16.18.0-chrome107-ff106-edge but several other versions are affected as well).
Is the issue you describe still occurring in current versions of cypress/browsers? cypress/browsers:node16.18.0-chrome107-ff106-edge which you mentioned is no longer supported.
I tried to execute a docker build in jenkins based on this example: https://github.com/cypress-io/cypress-example-kitchensink/blob/master/basic/Jenkinsfile but all newer versions fail with
(the above happened with cypress/browsers:node16.18.0-chrome107-ff106-edge but several other versions are affected as well).
Seems the dockerfile is missing some configurations for global NPM dependencies as outlined in https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#global-npm-dependencies.
The text was updated successfully, but these errors were encountered: