I’m still trying to get the hang of Digital Ocean. I have a MERN stack app with Next.js. And I recently made a few changes and now I’m trying to run
sudo npm run build and I keep getting this error.
Creating an optimized production build ...Killed npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! firstname.lastname@example.org build: `next build` npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the email@example.com build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I have no idea why. I’m running this on Ubuntu 20.04 (LTS) x64. And it says that I have 1GB Memory / 25 GB.
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!