Fix the Error: 0x8007019e The Windows Subsystem for Linux has not been enabled
If you are trying the Linux Subsystem for Windows feature for the first time, you will probably receive the following error message when you boot any Linux distribution:
WslRegisterDistribution failed with error: 0x8007019e
Error: 0x8007019e The Windows Subsystem for Linux has not been enabled.
Plenty of developers face this problem regardless of the web technology used. So this is not a node.js, angular, express, web
This is true even if you have enabled virtualization in the BIOS. The error occurs because WSL is not enabled by default, so you have to do it yourself.
To do this, open the start menu and start typing Turn Windows feature on or off
.
Click on the result to open and scroll to the bottom of the list. You need to enable two features:
Virtual Machine Platform
Windows Subsystem for Linux
The installation is quick, just a few seconds. After that, you have to restart Windows.