Hi everyone I am getting this error "'prisma' is not recognized as an internal or external command, operable program or batch file." while running prisma login command in cmd I have installed the prisma globally with npm install -g prisma any solution will be appreciated.

Install it globally with; npm i -g prisma
Assuming you have prisma installed in a local project:
npm i prisma @prisma/client
- or -
pnpm i prisma @prisma/client
- or -
yarn add prisma @prisma/client
Just call prisma generate like this (docs):
npx prisma generate
- or -
pnpm dlx prisma generate
- or -
yarn prisma
It works for all other node_modules using CLI as well (also in Windows).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With