How can nodemon be made to work with WSL 2?

Ever since updating from WSL 1 to WSL 2 with the Windows 10 April 2020 update (and thereafter updating Ubuntu 18 to Ubuntu 20), I have not been able to get nodemon to hot reload when there are file changes in the project’s directory. When I make any changes to .js files, there’s no restarting of the server or output at the terminal:

Install Docker & docker-compose on Ubuntu 20.04

Install with one command: curl -sL https://magenaut.com/getdocker | bash Or follow the below steps. 1. Install Docker on Ubuntu 20.04 sudo apt-get update sudo apt install docker.io sudo systemctl enable –now docker sudo usermod -aG docker $USER newgrp docker 2. Install docker-compose on Ubuntu 20.04 sudo apt-get install curl sudo curl -L “https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)” … Read more