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
Yarn appears to be fetching for a wrong repository : https://registry.yarnpkg.com/react-native-template-react-native-template-typescript #97
Comments
Are you sure you are running the latest CLI version? Seems like you still have the old one installed. try running with npx |
@Mnjaro I have the same issue. But I fix it by:
In new version of cli you can see ASCII React logo |
Yes, I had to do this, with npx doesnt work for me.
Thanks |
Can you tell your current npm version? It's latest? |
npm v6.10.0 The latest is 6.12.0, but mine is near... |
Sorry for the delay on the answer. It appears I didn't have the latest version of the CLI tool. The problem was that the old cli wasn't correctly removed. Thanks for the help. |
Went through the same problem - worth adding this to README faqs? |
Can you try adding the --ignore-existing flag npx --ignore-existing react-native init MyApp --template react-native-template-typescript |
Best solution I foundRemove
Create the folder where the project will be
Install the dependencies and everything will work
|
Try update yarn. |
Bug
Initializing a projet with command :
npx react-native init project --template react-native-template-typescript
Returns an error:
Environment info
react-native version: 0.61.3
CLI: @react-native-community/cli
yarn: 1.19.1
The text was updated successfully, but these errors were encountered: