windows subsystem for linux optional component is not enabled. please enable it and try again

Shell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Source

Also in Shell: