1

I trying to create a react native project, but always it gives me an download error (the create-react-native-app is installed), I try:

create-react-native-app Test

But always in the file ngrok-2.3.0.tgz I get an error. I downloaded the file manually, but I don't know where it goes, I try to put in AppData/Local/Temp (shown in the error text), but when running the command again, it overwrite the file and try to download it over again. Where are the react-native files to which I can put ngrok-2.3.0.tgz manually?

4
  • Have you tried this with an LTS (Long Term Support) version of Node? (i.e. 6 or 8)? Feb 26, 2018 at 23:25
  • @MattHolland, no, what's the difference? You think this can solve my problem?
    – underfilho
    Feb 26, 2018 at 23:43
  • I think it's worth a try! Odd numbered versions of Node (And even numbered versions of NPM) are more "experimental", the even number releases are intended to be more stable. One more thing you can try is npm cache clean to clear out your module cache, in case you have somehow downloaded a "bad" version of that module. Feb 27, 2018 at 1:00
  • @MattHolland, I tried npm cache clean, download all again, and in the same file I get an error, the file have 60mb, sometimes download only 10mb, sometimes 16mb, but never full. I downloaded an old version of npm (because create-react-native-app don't work in npm v5+ or something like that), they should already be stable, no?
    – underfilho
    Feb 27, 2018 at 14:20

1 Answer 1

1

The registry had some issues a few days ago resulting in the same error.

Take a look https://github.com/npm/npm/issues/19816

  • You can also try doing things with yarn
  • Offline packages can be done with yarn link ngrok which will indicate yarn/npm to get the local copy of ngrok.
2
  • An unexpected error occurred: "No registered module found called \"ngrok\" .". anyway, I resolve this with npm install react-native instead npm instal create-react-native-app, but I have a question, in any project creation the React needs to download all the project files? My network is very bad, why it can't download just one time?
    – underfilho
    Feb 27, 2018 at 15:22
  • No, react-native is different as it doesn't use EXPO (which is trying to download ngrok). if the issue with internet is a constant you might want to get a virtual desktop and use it with RDP :) - there is a free one aws.amazon.com/windows/products/ec2/server2012r2
    – mrbarletta
    Feb 27, 2018 at 20:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.