Ensure that you have WSL installed (you can find instructions to do so here) and that you are running Windows 10 build 18917 or higher
To make sure you are using build 18917 or higher please join the Windows Insider Program and select the 'Fast' ring or the 'Slow' ring.
You can check your Windows version by opening Command Prompt and running the ver
command.