Prisma2 warns that installing globally can cause t...
# orm-help
m
Prisma2 warns that installing globally can cause trouble. Well, that happened to me. While experimenting with different installations of v1 and v2, somehow my system got messed up. Now, when I install a version with npm, the installation is successfully completed, the nodes_modules are created and the package.json list the version but I cannot initialize a project. When I run 'prisma -v' or 'prisma2 -v' no installation is recognized. What can I do?
n
You can use a tool like npx which tries to run a local version of a command (in your node_modules) or falls back to a globally installed one. Also, assuming you have installed Prisma correctly in your project, you should be able to use the prisma command in any scripts you specify in your package.json
r
@Mike Dietz answered on GH discussions.