GeezerVison is showing github.com — Output path of current Prisma in `-v` · Issue #7771 · prisma/orm
Output path of current Prisma in -v #7771DescriptionProblem
This is a situation that can happen:
--- yarn prisma -v ---
warning package.json: No license field
prisma : 2.26.0-dev.7
@prisma/client : 2.26.0-dev.7
Current platform : debian-openssl-1.1.x
Query Engine : query-engine c838e79f39885bc8e1611849b1eb28b5bb5bc922 (at node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x)
Migration Engine : migration-engine-cli c838e79f39885bc8e1611849b1eb28b5bb5bc922 (at node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine : introspection-core c838e79f39885bc8e1611849b1eb28b5bb5bc922 (at node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary : prisma-fmt c838e79f39885bc8e1611849b1eb28b5bb5bc922 (at node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Default Engines Hash : c838e79f39885bc8e1611849b1eb28b5bb5bc922
Studio : 0.402.0
--- ls node_modules/@prisma/engines/ ---
ls: cannot access 'node_modules/@prisma/engines/': No such file or directory
As you can see yarn prisma -v tells us the engines comes from node_modules/@prisma/engines, but when you try to list that directory, it is actually not present.
What is happening here is that yarn prisma is actually from a few folders above our project. This is kinda visible when you look to not run yarn -s but just yarn:
codespace ➜ /workspaces/e2e-tests/platforms-serverless/firebase-functions (janpio-patch-5 ✗) $ yarn prisma -v
yarn run v1.22.10
warning package.json: No license field
$ /workspaces/e2e-tests/node_modules/.bin/prisma -v
prisma : 2.25.0-dev.36
@prisma/client : 2.25.0-dev.36
...
Suggested solution
Output the directory of where the executed prisma is from, either similar to Yarn the absolute path to the binary in node_modules, or the folder where the package.json that is responsible for the installation of Prisma comes from.
Alternatives
Rely on yarn itself to give that information. Will not work with npx unfortunately for example. Activitykartikbhardwaj1111 commented on Nov 19, 2025 quantbitrealmSimon commented on Feb 28, 2026 quantbitrealmSimon commented on Feb 28, 2026 added a commit that references this issue on Feb 28, 2026This issue will close once commit c5dd13d is merged into the 'main' branch.c5dd13d quantbitrealmSimon commented on Feb 28, 2026 I've submitted a fix for this issue in PR #29275.
The change adds a 'Prisma CLI Path' row to the version output, showing where the Prisma CLI is installed. This will help users debug cases where multiple installations exist (e.g., global vs local).
Example output:
prisma : 7.5.0
@prisma/client : 7.5.0
...
Studio : 0.0.0
Prisma CLI Path : /path/to/node_modules/@prisma/cli
added a commit that references this issue on Mar 5, 2026This issue will close once commit 2cfa589 is merged into the 'main' branch.2cfa589 baronguyen001 commented on May 24, 2026 Opened PR #29585 for this issue. jamilahmadzai commented on May 26, 2026 nagyminyo-cmyk commented on May 28, 2026 added a commit that references this issue on May 28, 2026This issue will close once commit 9e63a7f is merged into the 'main' branch.9e63a7f kitwongpixel commented on May 30, 2026 kitwongpixel commented on May 30, 2026 added a commit that references this issue on Jul 19, 2026This issue will close once commit bd24403 is merged into the 'main' branch.bd24403
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|