Sync database with schema is failing
lasanthaj opened this issue · 1 comments
I followed all steps from to the installation guide. sync database with schema failing with below errors. please advise
Environment details:
OS : ubuntu 20.04
node version : v14.21.1
nom version : 6.14.17
root@pckd-server:~/Pckd# npm run db-init
pckd@1.0.0 db-init /root/Pckd
cd server && npm run db-init
api@1.0.0 db-init /root/Pckd/server
npx -y prisma db push
npx: installed 104 in 7.337s
command not found: db
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! api@1.0.0 db-init: npx -y prisma db push
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the api@1.0.0 db-init script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-11-14T08_42_13_175Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pckd@1.0.0 db-init: cd server && npm run db-init
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pckd@1.0.0 db-init script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-11-14T08_42_13_203Z-debug.log
Same here.