By softinn
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap
12: 0x140dc19 [node]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! softinnhotelresort@0.1.0 build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the softinnhotelresort@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey there!
From the logs you provided it looks like your react project is running out of resources during build. Are you building this in App Platform or on a droplet? There are resource limits during build in App Platform that can be hit if you are using a lot of disk space. If this is a droplet I’d suggest reviewing the resource usage during build and scale up to a bigger droplet if needed.
Nate
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.