-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission denied on mkdir .../cypress/dist when installing globally #42
Comments
We have recently made
|
That's worked, thank you! Do you happen to know why node 8 breaks it? |
the combination of the default user and npm install permissions I think, but the use case for installing Cypress globally is pretty slim right now, so we recommend installing it locally just like a regular dependency. Plus once we do a better job caching the downloaded binary (cypress-io/cypress#1300) then it would not be very painful even locally. |
Ah right. The biggest problem with caching locally (for us) is that our current CI setup runs in disposable dockers each time. This'd mean that we're still installing from scratch each time. If you do end up pre-caching in the base images, that'd be good (for us). |
yeah, it is a problem. So on CircleCI and on Travis you can cache installed dependencies, even for Docker builds, other CIs should allow the same. For example cypress-example-recipes shows how to do this
And if you are hardcore Docker user, you could make a Docker images using your dependencies as a first step of the build using something like this https://github.com/bahmutov/double-docker |
We're using jenkins, but yeah, there should be something out there that I can find. Thank you for all the info and help! I'll keep looking into it. |
Got exactly the same problem (cypress + docker + jenkins) |
In case this helps someone else... I'm using the jenkins declarative pipeline syntax in a
With
|
We're using the docker image to avoid having to install cypress on every build.
Our docker image only runs this:
We've used this to install cypress fine, then we could use it in our tests.
I've just tried running the build command for this docker, but we're now getting permission denied errors.
Has anything changed that could have caused this? We can create the folder manually, but it's still failing.
The text was updated successfully, but these errors were encountered: