I have jsut finished creating a website and I want to make it live but when I deploy it i run into the error below. I am not sure exactly what that means so I am stuck. Can anyone help me?
Command “react-scripts build” exited with 127
That error means that the project expects the react-scripts
package to be installed, but it’s missing. It could be an issue with the package.json
or a project configuration problem. The repo you shared isn’t public, so I can’t see the code to make any specific suggestions
Hey,
I have made my repository public for you to be able to view it. I tried to troubleshoot the problem and make the necessary corrections with no such luck so far.
Thanks for making the repo public. It looks like a monorepo setup. I was able to deploy it with these settings:
Please give that a try and let me know how it goes!
My setups were the same other than the root directory which I added capstone like you had. I then attempted to try another deployment, and I received a different error than the one previous. My new error states npm run build exited with 1. I appreciate you for your help this is my first time doing something like this.
I have attached a couple of pictures below detailing the new error I have received in my log.
I checked the logs for more info, and it looks like you tried the redeploy option from an existing build attempt. This error may be happening because the switch to capstone
as the root directory significantly changed the project structure. As a result, the cache could be acting strangely.
It’s worth trying a fresh deployment instead of a redeploy. You could do that by committing a trivial code change deploy with the CLI.
This article has more info about that error code and ways to fix it: How To Fix the ERR_OSSL_EVP_UNSUPPORTED Error in Node.js | Built In
ERR_OSL_EVP_UNSUPPORTED
is an error that occurs in Node.js 17 when your application or one of its modules attempts to use an algorithm or key size that’s no longer allowed by default in OpenSSL 3.0. You can fix it by either downloading the latest Node.js LTS version or using the--openssl-legacy-provider
.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.