Skip to content
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

prisma generate does not work on node:12 image #1678

Closed
macrozone opened this issue Feb 21, 2020 · 3 comments
Closed

prisma generate does not work on node:12 image #1678

macrozone opened this issue Feb 21, 2020 · 3 comments

Comments

@macrozone
Copy link

we use a node:12 image on our gitlab-ci. there yarn install should trigger prisma2 generate.

it thows an error:

Error: Error: Command failed with ENOENT: /path/to/project/node_modules/prisma2/query-engine-debian-openssl-1.1.x --enable_raw_queries cli --dmmf

i can also log into the pod running this build and i see that this path indeed does not exist.

seems similar to #1635 and #1642

the base image is not an alpine, but the node:12 image, so it should be supported.

@macrozone
Copy link
Author

edit: i removed node_modules on that pod and did a yarn install again and now it works.

have to check whether this has to do with how we cache node_modules on gitlab-ci

@macrozone
Copy link
Author

closing, it seems the cached node_modules folder had not the right binaries.

maybe it would be good if prisma2 generate would try to reinstall missing stuff

@pantharshit00
Copy link
Contributor

@macrozone We further improved our binary checking logic in prisma/prisma-client-js@5519704 so this should not occur anyways now. It is avaliable in alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants