By jinjoelife
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! frontend@1.0.0 build: `next build`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the frontend@1.0.0 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!
Hi @jinjoelife,
Unfortunately, from this error I can’t provide more information that ask a couple of questions. Have you re-installed dependencies or tried to clean npm chache?
npm cache clean --force
Additionally, you can try deleting node modules listed in your package-lock.json file.
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.