Search code examples
reactjsnpmprismaprisma-graphql

'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


Solution

  • It isn't a problem with prisma, but with how you configured your PATH on Windows.

    Windows doesn't know where is prisma, so you must tell him where to look.

    See this answer to learn how to do that: Nodejs cannot find installed module on Windows?