Skip to content

npx react-native init issue #36290

Description

@grandwaterman

Description

Downloading template
✖ Copying template
error Error: Couldn't find the "/var/folders/6k/j31dr17d75b0dbs96wyrcv9h0000gn/T/rncli-init-template-wQ7wAu/node_modules/react-native/template.config.js file inside "react-native" template. Please make sure the template is valid.

I followed the instruction step by step from React Native Document, but keep getting this error. No problem starting with Expo, it is smooth and good.

React Native Version

@latest

Output of npx react-native info

error: unknown command 'info'
(Did you mean init?)

Steps to reproduce

npx react-native init reactnew

           ######                ######
         ###     ####        ####     ###
        ##          ###    ###          ##
        ##             ####             ##
        ##             ####             ##
        ##           ##    ##           ##
        ##         ###      ###         ##
         ##  ########################  ##
      ######    ###            ###    ######
  ###     ##    ##              ##    ##     ###

## ### #### ### ##

#### ######## ####

### ########## ###

#### ######## ####

## ### #### ### ##

  ###     ##    ##              ##    ##     ###
      ######    ###            ###    ######
         ##  ########################  ##
        ##         ###      ###         ##
        ##           ##    ##           ##
        ##             ####             ##
        ##             ####             ##
        ##          ###    ###          ##
         ###     ####        ####     ###
           ######                ######


              Welcome to React Native!
             Learn once, write anywhere

✔ Downloading template
✖ Copying template
error Error: Couldn't find the "/var/folders/6k/j31dr17d75b0dbs96wyrcv9h0000gn/T/rncli-init-template-lVm17w/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.

Snack, code example, screenshot, or link to a repository

           ######                ######
         ###     ####        ####     ###
        ##          ###    ###          ##
        ##             ####             ##
        ##             ####             ##
        ##           ##    ##           ##
        ##         ###      ###         ##
         ##  ########################  ##
      ######    ###            ###    ######
  ###     ##    ##              ##    ##     ###

## ### #### ### ##

#### ######## ####

### ########## ###

#### ######## ####

## ### #### ### ##

  ###     ##    ##              ##    ##     ###
      ######    ###            ###    ######
         ##  ########################  ##
        ##         ###      ###         ##
        ##           ##    ##           ##
        ##             ####             ##
        ##             ####             ##
        ##          ###    ###          ##
         ###     ####        ####     ###
           ######                ######


              Welcome to React Native!
             Learn once, write anywhere

✔ Downloading template
✖ Copying template
error Error: Couldn't find the "/var/folders/6k/j31dr17d75b0dbs96wyrcv9h0000gn/T/rncli-init-template-lVm17w/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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions