I’m running an Ubuntu droplet, and have a simple react app I want to test. However, when I pull in my code from git and npm install in the react app (I have tried yarn, it gets killed in the middle too), It dies suddenly in the middle of the install, and just says ‘killed’. I tried getting verbose logs, and it goes from cache hits to a bunch of cache misses at some arbitrary point before getting killed.
I suspect maybe my droplet doesn’t have enough memory for this since react has so many dependencies, but want to make sure before I upgrade.
Node version: 18.7.0 NPM version: 8.18.0
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!
Accepted Answer
I bit the bullet and upgraded from a 512 mB RAM droplet to 1 GB RAM after looking at my metrics, and it solved it.
Hi there,
Happy to hear that you’ve got it all working after upgrading to a 1GB RAM Droplet!
Another thing that you could consider is adding a swap file so that you could have some extra buffer:
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-22-04
Best,
Bobby
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.