Next.js build failed in bitbusket-pipelines

Viewed 11

I build successful in local, but when I use bitbusket pipelines to build, that's failed, I deleted the package-lock.json and cleaned the cache, still error as following, could someone help me? thank you

+ npm run build
> @ build /opt/atlassian/pipelines/agent/build
> next build
sh: 1: next: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @ build: `next build`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the @ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-09-21T13_33_09_619Z-debug.log
0 Answers
Related