작성
·
646
0
front에서 npm run build 실패하는데요.
aws에서 말고 local에서는 npm run build 성공합니다.
aws에서 에러 로그는 아래와 같습니다.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! front@1.0.0 build: `cross-env NODE_ENV=production ANALYZE=true next build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the front@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2021-09-14T13_04_47_669Z-debug.log
여기저기 찾아보니까 용량이 크면 빌드가 안된다고 하던데
그래서 그런걸까요??
답변 1
0
에러 메시지 윗부분이 잘린 것 같아요.
서버 메모리가 부족하거나 하면 다른 에러가 발생합니다. 다만 로컬에서 빌드가 잘 되는 경우 .next 폴더까지 git에 올린 후 서버에서 받으면 서버에서는 빌드하지 않아도 됩니다.