Skip to content

ENOENT running prisma2 init #353

Closed
Closed

Description

@jsep

Hello I'm getting this error running the cli on:

prisma2 init hello-prisma2
Error: ENOENT: no such file or directory, scandir '/Users/juan/repos/hello-prisma2'

Activity

  1. transferred this issue fromprisma/ormon Aug 12, 2019
  2. added
    bug/2-confirmed
    kind/bug
    on Aug 12, 2019
  3. robinduerhager commented on Aug 14, 2019

    @robinduerhager

    Hey, i want to extend this issue a bit further:

    ENOENT Error if there is not already a Folder named like the prisma2 project we want to init.

    However, if there is a folder, e.g.: ./hello-prisma2/ and we use prisma2 init hello-prisma2 in git bash in the root directory, i get this error:

    
    The above error occurred in one of your React components:
        in Unknown
        in div (created by Box)
        in Box
        in div (created by Box)
        in Box
        in div (created by Box)
        in Box
        in Unknown
        in Unknown
        in App
    
    React will try to recreate this component tree from scratch using the error
    boundary you provided, App.
    
    <Error occurs another 2-3 times>
    

    Shells which worked after creating a hello-prisma2 folder are:

    • PowerShell
    • CMD
  4. w0wka91 commented on Aug 14, 2019

    @w0wka91

    I'm having the same issue as the OP. I'll have a look at this one and see if I can fix it

  5. janpio commented on Aug 15, 2019

    @janpio
    Contributor

    @Novalis15 Please create a new issue for your second part of the comment, this is probably unrelated and at least needs a separate repro from our support (because Windows). Thanks - and thanks for reporting this in the first place 🐰

  6. added this to the Preview 8 milestone on Aug 15, 2019
  7. w0wka91 commented on Aug 19, 2019

    @w0wka91

    Just created a PR for this one:
    #376

  8. thorsten-stripe commented on Aug 19, 2019

    @thorsten-stripe

    Running into the same issues since updating to [email protected], binary version: 33e5fc84b6bd61602f8d634beb558230ca3e3054

    In the meantime, after a simple mkdir with the full path outputted in the error message (e.g. mkdir /Users/juan/repos/hello-prisma2) I was able to rerun prisma2 init without error.

  9. modified the milestones: Preview 8, Preview 9 on Aug 22, 2019
  10. divyenduz commented on Aug 29, 2019

    @divyenduz

    This is not reproducible anymore in [email protected], please re-open a new issue if the problem persists for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug/2-confirmedkind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions