Did I do something wrong?

Today when I’m trying to deploy my project ReactJS on Render, I got this error:

Feb 23 12:28:05 PM 20: 0x1423279 [/usr/local/bin/node]
Feb 23 12:28:06 PM npm ERR! code ELIFECYCLE
Feb 23 12:28:06 PM npm ERR! errno 1
Feb 23 12:28:06 PM npm ERR! my-app@0.1.0 start: react-scripts start
Feb 23 12:28:06 PM npm ERR! Exit status 1
Feb 23 12:28:06 PM npm ERR!
Feb 23 12:28:06 PM npm ERR! Failed at the my-app@0.1.0 start script.
Feb 23 12:28:06 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Feb 23 12:28:06 PM
Feb 23 12:28:06 PM npm ERR! A complete log of this run can be found in:
Feb 23 12:28:06 PM npm ERR! /opt/render/.cache/_logs/2023-02-23T05_28_06_265Z-debug.log

I tried to fix it but it’s still there. So what can I do to fix it?

Got this issue a while back, I think the way to fix it is by writing

npm install

Before putting your react-scripts start
Also, are you using a static site or a web service?
If you are using a static site, then yes you should do what I said, otherwise try switching to it.
Good luck!

1 Like

Hi there,

Mohamed’s suggestion seems right, you’re likely not installing your dependencies.

In addition, react-scripts is not a production ready tool. You likely want a Static Site and you may want to review the docs on Deploy a Create React App Static Site

Alan

1 Like

Hi all !

Thanks for your reply.

I just follow your solutions.

My site is living now but I getting an issue: You need to enable JavaScript to run this app.
*

I checked my Chrome and JS turned on. I use browser router in the website. So what can I do to fix it?

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