-
Notifications
You must be signed in to change notification settings - Fork 860
post-deploy hooks failing on windows since 1.20 #3491
Comments
Regression is because a recent commit upgraded npm-run to latest version. Fix #2557 had purposely downgraded npm-run to 4.1.2 because of known issue on windows, timoxley/npm-run#19. |
Pull request timoxley/npm-run#21 will hopefully fix this issue. |
@yaacovCR : Thanks for the detailed insights, you are correct that this is a regression, I will patch this up soon. |
Thanks and thank you for your work on Prisma! |
I'm sorry I don't understand what the solution to this error is, someone can explain to me what to do, thank you |
@difagume, workaround for now is as mentioned above by @pedwards1, to change the |
Thanks @pedwards1 ! |
Describe the bug
Post-deploy hooks are failing on windows since 1.20 - these were executing fine on 1.19.3.
For example using the following hook for prisma generate fails
hooks:
post-deploy:
- prisma generate
fails with:
post-deploy:
spawnSync prisma ENOENT
Running prisma generate ×
However changing 'prisma deploy' to 'prisma.cmd deploy' allows the command to be found and executed. This workaround was not required for 1.19.3. The same error and workaround also applies for other commands such as the graphql cli etc i.e. graphql get-schema fails but works when changed to graphql.cmd
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Prisma deploy should execute successfully
Versions (please complete the following information):
prisma
CLI: 1.20.1The text was updated successfully, but these errors were encountered: