In my case, I use an old version of Nodejs 18, and when I updated it to the Node 20, prisma generate start working