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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
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