Search code examples
reactjscmdcreate-react-app

ReactJS, create-react-app gets an error


I run from my console the "create-react-app practise1" command but it gets an error. I couldn't understand why. Can you help me? Normally I used it before as "create-react-app react-complete-guide" and this command had worked at that time. I share all the codes that i get as screenshot.

Thank you,

My Console screenshot


Solution

  • This isn't a problem directly with create-react-app itself but one of it's dependencies it needs, require-from-string. And that issue is coming from the npm registry itself, and temporarily, not create-react-app. See this about the npm registry status and this issue from create-react-app itself:

    What you can do, is if you have another project bootstrapped with create-react-app, you can copy it and make changes as neccessary for starting a new project. Or - you can wait until this issue from the npm registry is resolved. This is what happens when modern projects take a large number of dependencies - if a few of those dependencies aren't available, the whole project can have problems.