Nodemon Doesn’t Restart in Windows Docker Environment

Use nodemon --legacy-watch to poll for file changes instead of listening to file system events.

VirtualBox doesn’t pass file system events over the vboxfs share to your Linux VM. If you’re using Docker for Windows, it would appear HyperV doesn’t propagate file system events either.

As a 2021 side note, Docker for Mac/Windows new GRPCfuse file system for mounting local files into the VM should send file system events across now.

2022 note: Looks like Windows/WSL Docker doesn’t share FS events to the Linux VM (see comments @Mohamed Mirghani and @Ryan Wheale and github issue).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)