howtographql / react-apollo

MIT License
718 stars 319 forks source link

prisma deploy Unknown command "deploy" #122

Open guhyeon opened 3 years ago

guhyeon commented 3 years ago

I followed up procedure in readme. but prisma deploy failed.

image

I did npm install -g prisma

And, run the following commands: cd react-apollo/server yarn install prisma deploy

guhyeon commented 3 years ago

I catch that its reason is prisma version. update prisma version to 2.22.0 server\package.json { ... "dependencies": { "@prisma/client": "^2.22.0", ... }, "devDependencies": { "@prisma/cli": "^2.22.0", ... } }

And then remove directory server\prisma\migrations And type prisma migration deploy on cmd