The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again. error happens even though I turned it on code example
Example: The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux