-
Notifications
You must be signed in to change notification settings - Fork 905
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
react native template error. [npx react-native init app] #2468
Comments
Is it not running? Try removing the project from OneDrive folder. |
Hit the same issue, try initialising from an earlier version of react-native.
|
Hi! Did you manage to create a new project from template with a newest RN version? |
Same error here |
I feel like it is related to yarn v4. CLI says that node-modules of template are installed, but I dont see them actually appear on my disk. But the problem is I cant create .yarnrc.yml with |
Nope, same happens with npm
…On Thu, 15 Aug 2024, 00:48 Aleksandr, ***@***.***> wrote:
Same error here
I feel like it is related to yarn v4. CLI says that node-modules of
template are installed, but I dont see them actually appear on my disk. But
the problem is I cant create .yarnrc.yml with nodeLinker: node-modules
setting because CLI init command rewrites whole folder...
(I am not sure for now)
—
Reply to this email directly, view it on GitHub
<#2468 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADR7LW37XPY5A5GCO3XCZUTZRPCSTAVCNFSM6AAAAABL4YEH4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBZHEZDENBXGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Me too |
Solution that I've found:
P.S. I guess |
@thalesaguiar @nikandlv Im gonna tag you so you wont waste any more time |
I was having the same issue on macos with @react-native-community/cli and was able to get past the template error by setting specific versions (also using yarn vs npm):
|
Nice!! Now it works, thanks :)
|
Same issue |
the @RNEvok solution works for me, thanks |
Now the standard command works: npx @react-native-community/cli@latest init AwesomeProject. But why doesn't it work afterward? Could it be an npm issue? 🤔 |
this worked for me after using |
The trick seems to be |
i get similar error on mac when trying to initialize new RN 0.75.2 project.
when i use full output
|
Facing the same issue but finally i got a solution:- I was facing problem in my rbenv version first i make it global 3.1.2 and then also make changes in my zshrc file Then i use npx react-native init YourAppName --version 0.73.0 --template react-native-template-typescript |
thank you so much.. |
C:\Users\manis\OneDrive\Documents\React Native>npx react-native init app
Running: npx @react-native-community/cli init
warn The directory app contains files that will be overwritten:
.git
√ Do you want to replace existing files? ... yes
⠹ Downloading templateerror Installing pods failed. This doesn't affect project initialization and you can safely proceed.
However, you will need to install pods manually when running iOS, follow additional steps in "Run instructions for iOS" section.
✖ Downloading template
Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device connected.
• cd "C:\Users\manis\OneDrive\Documents\React Native\app" && npx react-native run-android
The text was updated successfully, but these errors were encountered: