Skip to content

Error: ENOENT: no such file or directory, open 'project-path/npm-module-name/example/package.json' #336

@liyamahendra

Description

@liyamahendra

Description

I saw a similar issue which is closed where it was suggested to run

npx create-react-native-library@latest react-native-awesome-library

and this seems to work just fine. But when I change react-native-awesome-library to some different name, say react-native-hello-world, I get the error saying:

Error: ENOENT: no such file or directory, open 'project-path/npm-module-name/example/package.json'

I'm attaching a screen recording of this

error.mp4

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

I executed the below command:

npx create-react-native-library@latest react-native-hello-world

Link to repro

No response

Environment

My Module wasn't created. Below are the details about the environment:

Node: v19.1.0
NPM: v9.1.2
MacOS: 12.16.1

Do let me know if you need any particular details

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions