Skip to content

Prisma CLI keeps downloading files that should only be downloaded once #20098

@janpio

Description

@janpio

On installation Prisma CLI (Npm package prisma) downloads some files (some binaries and some Node-API based libraries) from a CDN (binaries.prisma.sh) and puts them in node_modules for later use. prisma -v then outputs the path to these and asks the binaries and Node-API library for their version to output.

In my setup on Windows, each time I run prisma -v it downloads these files again:
image

Reproduction might be as simple as creating a new folder, then running deno run -A npm:prisma init and then deno run -A npm:prisma -v to observe it downloading the file again each time you run the command.

(When running prisma -v I also get this error message regularly when the CLI tries to ask one of the binaries for its version: #19544)

deno --version
deno 1.36.0 (release, x86_64-pc-windows-msvc)
v8 11.6.189.12
typescript 5.1.6

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions