diff --git a/faq.md b/faq.md index 603a2e84..f8b205eb 100644 --- a/faq.md +++ b/faq.md @@ -13,11 +13,13 @@ In your `nodemon.json` (or in your `package.json`) you can include the follow ev ```json { "events": { - "start": "node -e 'console.clear()'" + "start": "cls || clear" } } ``` +Note that on Windows, this will clear the scroll buffer too. If you try to use node to clear the screen, you may have a race condition between the boot time of your process and the start event. This method should be the fastest. + # nodemon doesn't restart on .env change This is an edge case with how nodemon watches files. This is because nodemon doesn't know if `.env` is a hidden file with no extension or a `*.env` without a filename.