Skip to content

Error when creating a package. Error in step Copying template #382

Description

@guillempuche

Description

The first time I try this repo.

When running npx create-react-native-library@latest name and fill all the package.json data, this happens:
imatge

/Users/aaaa/.npm/_npx/e106e660d51959d2/node_modules/create-react-native-library/lib/utils/generateExampleApp.js:62
        reject(new Error(stderr));
               ^

Error: - Downloading template
✔ Downloading template
- Copying template
✖ Copying template
error Error: Couldn't find the "/var/folders/ys/spt316fs5sxck01gjy40s1rc0000gn/T/rncli-init-template-AoLPqU/node_modules/react-native/template.config.js file inside "react-native" template. Please make sure the template is valid. Read more: https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template.

    at ChildProcess.<anonymous> (/Users/aaaa/.npm/_npx/e106e660d51959d2/node_modules/create-react-native-library/lib/utils/generateExampleApp.js:62:16)
    at Object.onceWrapper (node:events:642:26)
    at ChildProcess.emit (node:events:527:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12

The line 62 of generateExampleApp.js in the npx's cache ~/.npm/_npx/e106e660d51959d2/node_modules/create-react-native-library/lib/utils

        reject(new Error(stderr));

I tried version 0.27.2. The same problem.

Packages

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

Selected options

The step What type of library do you want to develop? I tried all, only Javascript worked.

Link to repro

No response

Environment

  • macOS 13
  • Node 16.15.1

Activity

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

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