React installation via shell failing

I’m prototyping a Express/Node app. I have my server working with a few simple routes, and I have MongoDB installed. Now, I want to install React using npx create-react-app client. However, when I enter this command in the shell, it runs, and then fails with this error:

Creating a new React app in /home/runner/indexjs/client.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

(#########⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠹ reify:fsevents: sill reify mark deleted
Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Node, NPM, and all other packages are up to date. I also tried npm cache clean --force, but did not help.

Repl link:

Hi @majornorth , welcome to the forums!
You can use the official React template:
Hope this helps!

1 Like

@majornorth I recommend creating 2 Repls, 1 with the backend and the other with the frontend. Fork the official template for the React Repl

Thanks all! I was able to get around this issue by using yarn to install react via the shell.

@QwertyQwerty88 if I use 2 repls to separate backend and frontend, would you point me to documentation for how to access code between repls?

You can’t do that. I was suggesting having the backend as an API you could make requests to from the React Repl. But if you got it working without that, then you don’t need to do this. It’s just simpler in my opinion.

1 Like