Next.js server automatically ends after a few seconds of running “npm run dev”

i am running next.js for the first time, copied the installation script form the official page

npx create-next-app@latest hello-word

but after installation and running “npm run dev ” or “yarn dev, it runs the server on port 3000, then after few second just kills the server

enter image description here

i have tried to run lesser versions that ain’t next13 but i got same issue