cli icon indicating copy to clipboard operation
cli copied to clipboard

react-native-template-js has not updated react version yet?

Open clayxmen opened this issue 3 weeks ago • 1 comments

Environment

Description

PS C:\VPS\golive> npx @react-native-community/cli@latest init ReactNativeMealsApp --template react-native-template-js

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

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

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

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

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

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

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


          Welcome to React Native 0.82.1!
             Learn once, write anywhere

✔ Downloading template ✔ Copying template ✔ Processing template ⠴ Installing dependencies

error An unexpected error occurred: Command failed with exit code 1: npm install npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: [email protected] npm error Found: [email protected] npm error node_modules/react npm error react@"17.0.1" from the root project npm error npm error Could not resolve dependency: npm error peer react@"^16.8" from @react-native-community/[email protected] npm error node_modules/@react-native-community/async-storage npm error @react-native-community/async-storage@"^1.12.1" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error C:\Users\ADMIN\AppData\Local\npm-cache_logs\2025-12-06T17_43_53_385Z-eresolve-report.txt npm error A complete log of this run can be found in: C:\Users\ADMIN\AppData\Local\npm-cache_logs\2025-12-06T17_43_53_385Z-debug-0.log.

Reproducible Demo

clayxmen avatar Dec 06 '25 17:12 clayxmen

react-native-template-js isn't an official template, you'll want to report that issue on their repo: https://github.com/Dat0319/react-native-template-js

liamjones avatar Dec 08 '25 08:12 liamjones

hi brother you can try " npx @react-native-community/cli@latest init ReactNativeMealsApp --template " only, after that you can choose js template

tmdreepu avatar Dec 17 '25 08:12 tmdreepu

hi brother you can try " npx @react-native-community/cli@latest init ReactNativeMealsApp --template " only, after that you can choose js template

error: option '--template ' argument missing.

Thank you!

clayxmen avatar Dec 19 '25 10:12 clayxmen