How to fix "react-scripts: not found" error Command failed with exit code 127. Build failed 😞

I am new to reactjs apps.
but i want to deploy this

but the error message is
Jan 5 10:42:20 PM ==> It looks like we don’t have access to your repo, but we’ll try to clone it anyway.
Jan 5 10:42:20 PM ==> Cloning from GitHub - rphly/ejss-browser-editor: A browser-based EJSS simulation editor for the modern browser. Built on Reactjs
Jan 5 10:42:21 PM ==> Checking out commit d3092632fcef2975ea355c8141a15969148bf81f in branch master
Jan 5 10:42:25 PM ==> Running build command ‘yarn build’…
Jan 5 10:42:25 PM yarn run v1.22.5
Jan 5 10:42:25 PM $ react-scripts build
Jan 5 10:42:25 PM /bin/sh: 1: react-scripts: not found
Jan 5 10:42:25 PM error Command failed with exit code 127.
Jan 5 10:42:25 PM info Visit yarn run | Yarn for documentation about this command.
Jan 5 10:42:25 PM ==> Build failed :disappointed:
Jan 5 10:42:25 PM ==> Generating container image from build. This may take a few minutes…

how to i fix this?
“react-scripts: not found” how and what to write?

thanks in advance.

no worries, i deploy as static website and it is running!

Hey,

Great to hear. “react-scripts” won’t work because it’s not part of our Native Environment [https://render.com/docs/native-environments]

As you probably found out, deploying React via a Static Site is the way to go.

Jérémy, Render Support


same problem: Exit code: 127
how to fix this problem?

Hey,

It looks like the service mentioned in your screenshot has been deleted. Do you still require any help?

Regards.
Jérémy, Render Support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.