#npm run dev is stuck in watching for file changes
1 messages · Page 1 of 1 (latest)
Astro's development server, which is started with the astro dev command, is designed to watch for file changes in your project and automatically update the served site. This means that the command doesn't stop running until you manually stop it. It's normal for it to appear as if it's "stuck" because it's continuously watching for changes. You should be able to see your website at the local host URL provided in the terminal output, typically <http://localhost:4321/> [^1^].
If you're unable to view your project in the browser, it's possible that an error occurred or your project is being served at a different URL. You can check the terminal where you ran the dev command to see if any error messages were displayed [^1^].
If you're still having issues, it might be due to a specific problem with your project or environment. Some users have reported issues with the dev server hanging or not working correctly due to specific features or configurations in their projects [^2^][^3^][^4^][^5^]. Without more specific information about your project and the issues you're encountering, it's difficult to provide a more precise solution.