Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'prisma' is not recognized as an internal or external command, operable program or batch file

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.

enter image description here

like image 241
Ezatla Avatar asked Dec 12 '25 11:12

Ezatla


2 Answers

Install it globally with; npm i -g prisma

like image 81
Akhigbe-E Avatar answered Dec 15 '25 05:12

Akhigbe-E


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).

like image 20
radzi0_0 Avatar answered Dec 15 '25 03:12

radzi0_0