'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
but this wont work, because we are isntalling ts-node locally and not globally6 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai
is there if you need a quick second opinion.Hi @bockster6669
If you run the command below with your seed script defined like you mentioned, it would work.
You mean, if I install ts-node globally?
I fix the issue by placing npx before ts-node
You mean, if I install ts-node globally?No, you don't need to install ts-node globally this is how i defined my script Then running the command executes it
`
npx prisma db seed
But this is the problem I am reporting, this is not going to work, because ts-node is not recognised as a command