I cannot configure WebStorm to work with my projects in WSL (this happened after I reinstalled my Windows OS and WSL). I think that the problem is related to WSL configuration, but I cannot find which exactly.

The same problem with ESLint in my projects:


C:\Users\FTowe>wsl --status
Default Distribution: Ubuntu
Default Version: 2
Windows Subsystem for Linux was last updated on 3/6/2022
The Windows Subsystem for Linux kernel can be manually updated with 'wsl --update', but automatic updates cannot occur due to your system settings.
To receive automatic kernel updates, please enable the Windows Update setting: 'Receive updates for other Microsoft products when you update Windows'.
For more information please visit https://aka.ms/wsl2kernel.
Kernel version: 5.10.16
C:\Users\FTowe>
gt@DESKTOP-8828LLP:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
gt@DESKTOP-8828LLP:~$
What is wrong with my WSL distribution and how to fix this problem?
So, thanks to @lena I found this new Ubuntu /home/... version in my node interpreter version configuration(the previous selection was Ubuntu-20.04 /home/... and then the same path to node).
did you try removing the existing Node wsl interpreter configuration in Node.js Interpreters

After I checked another option(Ubuntu /home/...), applied, and clicked OK everything started working again. But the previous option disappeared when I opened settings again. I checked it a few times in different projects and confused about that.

As I can remember there was no another option Ubuntu /home/... before. So it kind of solved itself? Thanks, everyone!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With