How to use nodemon with a custom Express server?
See original GitHub issueHow to use nodemon
with a custom Express server?
I looked at examples/custom-server-express and added:
"scripts": {
"dev": "nodemon server.js",
},
…but it generates an infinite loop when I run it. Any tips?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How To Restart Your Node.js Apps Automatically with nodemon
You can use nodemon to start a Node script. For example, if you have an Express server setup in a server.js file, you...
Read more >How to use nodemon with express js while npm start?
Install nodemon as globally first, using these commands ... Now go to your express.js project directory and in that open the package.json ...
Read more >How To Setup An Express JS Server With Nodemon and Babel
First thing is we are going to create a folder called express_server and initialize npm using the command following codes. mkdir express_server cd ......
Read more >Using Nodemon with Express - Node.js MVC Tutorial - YouTube
Welcome to the second episode of the " Node. js MVC Tutorial ".In this video we will learn about using nodemon with express...
Read more >Create new Node.js application with Express, TypeScript ...
Nodemon is a tool which is widely used and which tracks changes and automatically restarts the application. If we do not use Nodemon...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is
next({ dev })
nonext({ isDevelopment })
. Also you’re not runningapp.prepare()
which is used to build the files.Taken from one of the OSS Next.js projects I knew uses nodemon: https://github.com/relatenow/relate/blob/master/package.json#L12 it seems like you have to provide specifically that only the server has to be watched 👍