{"id":720,"hash":"9130ffccc96064c05e9ea7c0104850484084429249da8c4fafe4d3c043cbe294","pattern":"I&#39;ve been trying to run my seed script in prisma with nextJs and TS, and receiving the following error, is there any way to fix this?","full_message":"in package.json, I've added the following lines:\n\n\"prisma\": {\n    \"seed\": \"ts-node --compiler-options {\\\"module\\\":\\\"CommonJS\\\"} prisma/seed.ts\"\n }\n\nand when I run this: npx prisma db seed\n\nOUTPUT:\n\nAn error occured while running the seed command:\n\nError: Command failed with ENOENT: ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts\nspawn ts-node ENOENT","ecosystem":"npm","package_name":"typescript","package_version":null,"solution":"This problem could be no ts-node installed. Please check your package.json file and see if there is any ts-node installed.\n\nIf not, just install ts-node with:\n\nnpm i ts-node@<specific-version>\n\nor add -D if you are in development mode:\n\nnpm i ts-node@<specific-version> -D\n\nIn some situation, you may need to install Typescript as well:\n\nnpm i typescript@<version-compatible-with-your-tsnode>","confidence":0.8500000000000001,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/72413834/ive-been-trying-to-run-my-seed-script-in-prisma-with-nextjs-and-ts-and-receivi","votes":11,"created_at":"2026-04-19T04:51:32.041688+00:00","updated_at":"2026-04-19T04:51:32.041688+00:00"}