react-native init in 0.70 fails because of '_' in project name
Description
just create a new project as usual : ex : and see what you get :
C:\Users\info\Documents\logiciels-windows\dev_RN-Node-GIT>npx react-native init test_rn ###### ###### ### #### #### ### ## ### ### ## ## #### ## ## #### ## ## ## ## ## ## ### ### ## ## ######################## ## ###### ### ### ###### ### ## ## ## ## ###
## ### #### ### ##
#### ######## ####
### ########## ###
#### ######## ####
## ### #### ### ##
### ## ## ## ## ###
###### ### ### ######
## ######################## ##
## ### ### ##
## ## ## ##
## #### ##
## #### ##
## ### ### ##
### #### #### ###
###### ######
Welcome to React Native!
Learn once, write anywhere
√ Downloading template √ Copying template × Processing template error Error: ENOENT: no such file or directory, rename 'C:\Users\info\Documents\logiciels-windows\dev_RN-Node-GIT\test_rn\ios\HelloWorldTests\HelloWorldTests.m' -> 'C:\Users\info\Documents\logiciels-windows\dev_RN-Node-GIT\test_rn\ios\HelloWorldTests\HelloWorldTests.m'
After , "yarn" works BUT yarn run android works partially because the package installed does NOT have the right name : here it is "Hello App display Name" ! So release 0.70.5 not for production.
- I did not test on ios : yarn run ios , which is may be in failure.
Version
0.70.5
Output of npx react-native info
info Fetching system and libraries information... System: OS: Windows 10 10.0.19043 CPU: (4) x64 Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz Memory: 1.70 GB / 7.70 GB Binaries: Node: 16.14.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: AllowDevelopmentWithoutDevLicense: Enabled AllowAllTrustedApps: Enabled IDEs: Android Studio: Not Found Visual Studio: Not Found Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.5 => 0.70.5 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
npx react-native init test_rn
Snack, code example, screenshot, or link to a repository
no utility
Hi, In fact I have the same error with all the versions : with use of the --version 0.70.1 to 4 flag
I suppressed C:\Users\info\AppData\Local\npm-cache_cacache & _npx here is the npm error log of the 0.70.5 init:
and same on Linux machine ! : npx react-native init test_rn ... and : npx react-native info error Failed to load configuration of your project.
BUT that command runs correctly on Linux and Windows : npx react-native init AwesomeProject
==> so no more "_" in project names since 0.70 ?
the message could be more explicit ?
corrected on version 0.71.0 : runs perfect - thks