프로젝트를 우분투에 배포하고 npm run start, npm run build를 하는 과정이였다
로컬에서는 정상적으로 작동하는데 우분투 상에서는 아래 그림에만 멈춰져있고 더 이상 진행되지 않았다.

검색을 하며 원인은 Swap Space가 부족해서임을 알았다
밑의 참고를 따라 추가해준뒤 다시 실행하니 정상적으로 작동했다.

npm run build works fine on local machine but shows error on remote ubuntu server
I'm trying to deploy my MERN app on the digital ocean remote ubuntu server. After git clone, I did npm install to my root folder, client folder, and server folder. But when I tried to run npm start...
stackoverflow.com
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04
How To Add Swap Space on Ubuntu 16.04 | DigitalOcean
www.digitalocean.com
'문제해결' 카테고리의 다른 글
[AWS] Elastic Ip 삭제 (0) | 2024.02.28 |
---|---|
route53 도메인에 접속할 때 ERR_CONNECTION_REFUSED (0) | 2024.02.07 |
[ERROR] Your password does not satisfy the current policy requirements 해결 (0) | 2024.01.09 |
[Error] exited with code [1] via signal [SIGINT] / Too many unstable restarts 에러 해결 (0) | 2024.01.08 |
sh를 통해 로컬에서 Remote Ubuntu 실행하기 / pm2: command not found 해결 (0) | 2024.01.08 |