Having an error in running a prisma command

I’m new to Prisma and Ts.ED framework, I’m trying to build a simple crud operation using them to understand the flow. I have Prisma installed globally(although, not recommended) and also invoked it globally using this command “prisma”. but, when I ran this command

"prisma generate" 

I have this error:

Error: Generator at tsed-prisma could not start:
/bin/sh: tsed-prisma: command not found. 

The error wasn’t there initially but started when I shut down my system. I have deleted the node modules and installed Prisma again, and still, the error persists. Please, I need help to resolve this error. Thank you