-
Notifications
You must be signed in to change notification settings - Fork 397
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
An unexpected error occurred: "https://registry.yarnpkg.com/react-native-template-react-native-template-typescript: Not found" #72
Comments
Please read readme and how to use this template. |
For future users here is what I omitted reading
|
remove legacy react-native-cli install new thing and you can new project with react-native-template-typescript |
thanks it works |
@guhyeon , thanks it works. |
OMG, Thank @guhyeon. You saved my life! |
This comment has been minimized.
This comment has been minimized.
error Error: Command failed: yarn add react-native@latest |
Please reopen. |
@jrz what's your issue? |
Exactly the same. When starting doing an init with the ts template, I get
Note the react-native-template prefix.
|
Hmm.. ok. I did install the latest version (I have multiple node versions managed by nodenv, and because it does know the cli available somewhere, it'll return a message about that rather than not-found). Afterwards, I removed all cli's from all versions.. I'll have to upgrade old projects someday anyway. Still didn't work, as I removed the cli's in a separate terminal. Had to close / nodenv rehash in or to pick it up. |
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
|
This didn't work for me then I remembered that I used yarn 😅 so for reference then installing the correct one then creating a new project should work |
helped me a lot @yarapolana , thanks! |
@yarapolana thanks!!! |
Try update yarn. |
First, remove react-native-cli
Second, install @react-native-community/cli
Third, with this I should able to create react native project using typescript tempalate
Fourth, for run existing project or old react native project
|
Thanks .. it work!!! |
Updating the |
Bug
Trying to run exactly what is said in README.md of this package:
Gives me this error
Environment info
React native info output:
Library version: 0.60.5
Steps To Reproduce
...
Describe what you expected to happen:
Reproducible sample code
I have no code, it is not related to this issue
The text was updated successfully, but these errors were encountered: