0👍
✅
maybe because of lack of resources. If you are using the free tier then it is most likely your VPS has 1 GB of ram and other limited resources. npm run dev does a lot of work under the hood. And when it lacks resources, it tends to freeze. Try building tour app on local for production and then deploy on ec2 using a web server.
Source:stackexchange.com