PrismaP
Prisma13mo ago
8 replies
bockster6669

'ts-node' is not recognized

I understand that this error comes from that ts-node is not installed globally . I want to report that in the seeding guide, there is written
" Add typescript, ts-node and @types/node development dependencies: "

npm install -D typescript ts-node @types/node and

"prisma": {
  "seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},

but this wont work, because we are isntalling ts-node locally and not globally
Was this page helpful?