Title
p

pasa

05/01/2018, 9:14 PM
When running
prisma deploy
I get the following error:
post-deploy:
Running graphql get-schema --project database !
 ▸    'ENOENT': spawn graphql ENOENT
What could cause this?
After installing graphql globally through npm, I get the following error now:
post-deploy:

Running graphql get-schema --project database... !
Error: spawn graphql ENOENT
    at _errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)
Exiting with code: 1
n

nilan

05/02/2018, 7:34 AM
are you using Windows? Looks like an issue, can you raise it here: https://github.com/graphcool/prisma/? 🙂
p

pasa

05/02/2018, 7:11 PM
It was actually my fault. I didn't install graphql-cli prior to this.
n

nilan

05/02/2018, 7:12 PM
ah, you even said you installed
graphql
. Yea, the npm package is
graphql-cli
, the binary is
graphql
🙂