-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[0.75.0-rc.2]: npm error when running npx react-native@next init #45189
Comments
|
got the fix?? having something similar issue.... it stucked at downloading template... although i m on a high speed internet |
use this |
@migueldaipre do you happen to have |
None at all, but running It seems to me that the problem is with the npm |
This is how the command behaves on my machine: @migueldaipre could you try to delete this folder:
and try again? I have the suspect this is due to the CLI previously registering a binary called |
It's worked.
Thank you @cortinico 🎉 |
So what's happening is you already have in your cache some version that satisfies the "@next" constraint, let's say you test a previous RC so npx won't fetch the 'latest' @next but will use your cache. So nuking the cache is a way to fix it, or using an explicit "@0.75.0-rc.X" will also work. "@latest" seems to work as it will always fetch the latest version but it's probably an edge case |
Description
Error creating a project from scratch with the command suggested on the release page.
npx react-native@next init RN75 --version next
Running
npx react-native@0.75.0-rc.2 init Vision75 --version 0.75.0-rc.2
works.Steps to reproduce
npx react-native@next init Vision75 --version next
React Native Version
0.75.0-rc.2
Affected Platforms
Runtime - Android, Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
not possible
Screenshots and Videos
The text was updated successfully, but these errors were encountered: