-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not create an empty Git repository, see debug logs with --verbose #2297
Comments
hey @mcnaveen, can you run with |
Hi @szymonrybczak Sure, here it is.
and I can't find this log |
Can you try with |
I feel like this is more of a yarn issue. Because, With Also, here is the yarn config. $yarn config list
yarn config v1.22.19
info yarn config
{
'version-tag-prefix': 'v',
'version-git-tag': true,
'version-commit-hooks': true,
'version-git-sign': false,
'version-git-message': 'v%s',
'init-version': '1.0.0',
'init-license': 'MIT',
'save-prefix': '^',
'bin-links': true,
'ignore-scripts': false,
'ignore-optional': false,
registry: 'https://registry.npmjs.org',
'strict-ssl': true,
'user-agent': 'yarn/1.22.19 npm/? node/v18.13.0 darwin arm64',
lastUpdateCheck: 1707900363661,
nodeLinker: 'node-modules'
}
info npm config
{
editor: 'code',
'registry.npmjs.org/:_authToken': 'npm_XXXXXXXXXXXXXX'
} |
After initializing the project, can you install dependencies with Yarn inside project? Or do you have the same error as when initializing? |
Once the project is initialized, I can install the dependencies with yarn. It seems to be working fine. |
Hm, very strange. Unfortunately I cannot reproduce it myself :( |
Happy to provide more info if needed. Will try this on my Linux machine after I wake up. Think I face this only on Mac OS M1 |
I see that there's a log file that probably contain more useful information about the failure:
Maybe you could run |
Hi @szymonrybczak This is strange, I can't reproduce this on my Linux machine. Happens only on Mac M1. Also, I can't access the log fie. It says file not found.
|
So, here is the update on the issue.: It of course fails with the yarn Here are the steps to set the yarn to v4. By default, the corepack is being shipped with node latest version.
This time it'll use yarn v4 and works without any issue. |
Alright, so let's keep the latest version of Yarn, as it's faster and more secure. Thanks for digging into this issue! 🙏 |
Environment
Description
Trying to init a new react native project.
Upon running
npx react-native@latest init myapp
It throws the following error. Also the create folder is empty.I have attached a screenshot of the error below.
Similar issue #2212 | Proposed/Merged fix: #2215 But it's still occuring.
Reproducible Demo
Create a new React Native project with the command
npx react-native@latest init myapp
The text was updated successfully, but these errors were encountered: