-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Add new warning for users with both yarn and npm installed #3689
base: main
Are you sure you want to change the base?
Conversation
added the warning thats on github onto the website. I got stuck here and had to ask stackoverflow. Having this info on the website would have saved me hours. https://stackoverflow.com/questions/76030622/react-native-unable-to-download-template/76032088#76032088
added the warning thats on github onto the website. I got stuck here and had to ask stackoverflow. Having this info on the website would have saved me hours. https://stackoverflow.com/questions/76030622/react-native-unable-to-download-template/76032088#76032088
Hi @munozr1! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Can you clarify on why you needed |
I'm not sure why on my environment i require the --npm when having both yarn and npm installed. I just know that adding the --npm flag allows me to successfully download the default template. Everytime, without fail, not having the flag fails to donwload the default template. the details of the err and how I got the solution are here: Is there any information i can provide you to better understand the problem? versions: |
Which commands are you running specifically? |
Im simply using the command written in the docs website. I follow these instructions for macOS and iOS exactly as shown Problem Command: Solution Command: |
mmm that's interesting. Could you copy the error message you're having? |
+1 to Nico's ask here, I'm interested to see what happened there @munozr1. |
Running command without --verbose flag
Running command with --verbose flag
|
I don't know that React Native plays nicely with Yarn versions after 1.x/Yarn Classic. I know that PnP as a default in Yarn 2.0 certainly broke RN support (also the ability for Metro to resolve anything). IIRC they were walking things back to improve compat, but I have't looked closely at them recently. I think we could maybe clarify that when we refer to yarn, we are referring to yarn classic. |
Also, the CLI should be able to detect this. It's already shelling out to yarn, so it could do a version check at least. |
(relevant) RN CLI PR: react-native-community/cli#1931 |
It works great with |
Also faced this problem when doing the setup, but it worked when I used node 18. Yarn: 3.5.0 Now using node v18.11.0 (npm v8.19.2) and it worked. |
I have added the warning thats on the react-native github (https://github.com/react-native-community/cli/blob/main/docs/init.md#using-npx-utility) onto the website. I got stuck here and had to ask stackoverflow. Having this info on the website would have saved me hours.
https://stackoverflow.com/questions/76030622/react-native-unable-to-download-template/76032088#76032088