Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT when running prisma with pkg #2717

Closed
steebchen opened this issue Jun 11, 2020 · 5 comments
Closed

ENOENT when running prisma with pkg #2717

steebchen opened this issue Jun 11, 2020 · 5 comments
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. tech/typescript Issue for tech TypeScript.
Milestone

Comments

@steebchen
Copy link
Contributor

npm i -g pkg
npm i @prisma/cli
pkg node_modules/@prisma/cli

./cli-macos --version

results in

Error: ENOENT: no such file or directory, copyfile '/home/runner/.cache/prisma/master/dc0f43d1460553447c563479493914279205d48f/debian-openssl-1.1.x/prisma-fmt' -> '/snapshot/node_modules/@prisma/cli/prisma-fmt-debian-openssl-1.1.x'
@steebchen
Copy link
Contributor Author

steebchen commented Jun 11, 2020

We can test it by pushing to prisma and rebase the e2e tests master branch into prisma/ecosystem-tests#425

Jolg42 added a commit that referenced this issue Jun 11, 2020
@Jolg42 Jolg42 added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. tech/typescript Issue for tech TypeScript. labels Jun 11, 2020
@Jolg42 Jolg42 added this to the 2.1.0 milestone Jun 11, 2020
timsuchanek added a commit that referenced this issue Jun 11, 2020
fix(sdk): Add prisma-fmt paths for #2717
@steebchen
Copy link
Contributor Author

image

Seems the issue still exists with dev.12

Jolg42 added a commit that referenced this issue Jun 15, 2020
Jolg42 added a commit that referenced this issue Jun 15, 2020
@Jolg42
Copy link
Member

Jolg42 commented Jun 15, 2020

@timsuchanek I guess this doesn't work anymore

// for pkg
prismaPath = path.join(dir, '../..', binaryName)
if (fs.existsSync(prismaPath)) {
return maybeCopyToTmp(prismaPath)
}

@pantharshit00
Copy link
Contributor

I can confirm this:
image

version: 2.1.9-dev.29

@pantharshit00 pantharshit00 added bug/2-confirmed Bug has been reproduced and confirmed. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. labels Jun 17, 2020
@timsuchanek
Copy link
Contributor

Thanks a lot for reporting 🙏
This issue is fixed in the latest dev version of @prisma/cli.
You can try it out with npm i -g @prisma/cli@dev.

In case it’s not fixed for you - please let us know and we’ll reopen this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. tech/typescript Issue for tech TypeScript.
Projects
None yet
Development

No branches or pull requests

4 participants