I’m having an issue with the build process. Every time an automated build kicks off from a Github push, the build fails. However if I restart/retry the deply with the cache cleared it builds / deploys successfully. EVERY SINGLE TIME.
11
:16:05 AM: sanity-nextjs-landing-pages-studio: > sanity-nextjs-landing-pages-studio@1.0.4 build /opt/build/repo/studio11
:16:05 AM: sanity-nextjs-landing-pages-studio: > sanity build11
:16:05 AM: sanity-nextjs-landing-pages-web: > sanity-nextjs-landing-pages-web@1.0.7 build /opt/build/repo/web11
:16:05 AM: sanity-nextjs-landing-pages-web: > next build && next export && node exportSitemap.js11
:16:05 AM: sanity-nextjs-landing-pages-web: sh: 1: next: not found11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! code ELIFECYCLE11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! syscall spawn11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! file sh11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! errno ENOENT11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! sanity-nextjs-landing-pages-web@1.0.7 build:
next build && next export && node exportSitemap.js
11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! spawn ENOENT11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR!11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! Failed at the sanity-nextjs-landing-pages-web@1.0.7 build script.11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.11
:16:05 AM: sanity-nextjs-landing-pages-web: npm WARN Local package.json exists, but node_modules missing, did you mean to install?11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! A complete log of this run can be found in:11
:16:05 AM: sanity-nextjs-landing-pages-web: npm ERR! /opt/buildhome/.npm/_logs/2020-08-24T04_16_05_419Z-debug.log