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

Prisma 2.0.0-beta.7 npx prisma generate issue if working directory contains spaces #2612

Closed
maoosi opened this issue May 31, 2020 · 1 comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug.
Milestone

Comments

@maoosi
Copy link

maoosi commented May 31, 2020

Since upgrading to Prisma 2.0.0-beta.7, running npx prisma generate fails with the below error:

Error: Generator at node --max-old-space-size=8096 /Volumes/Macintosh HD - Data/***/node_modules/@prisma/client/generator-build/index.js could not start:

internal/modules/cjs/loader.js:797
    throw err;
    ^
Error: Cannot find module '/Volumes/Macintosh'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
    at internal/main/run_main_module.js:17:11 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

It's working fine when downgrading to 2.0.0-beta.6.

Given the error returned, it seems related to the fact my working directory contains spaces. I've also noticed that the latest release includes a fix for #1973, so this might be linked?

@janpio janpio added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. labels Jun 2, 2020
@janpio janpio added this to the Beta 8 milestone Jun 2, 2020
@timsuchanek
Copy link
Contributor

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

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

@janpio janpio modified the milestones: Beta 8, Beta new 8 Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug.
Projects
None yet
Development

No branches or pull requests

3 participants