3 ms·
I'm using Fedora on a VM. I'm working with angular and it's CLI works VERY slowly with WSL2 for some reason.
by 7speter 4y ago
I'm using Fedora on a VM. I'm working with angular and it's CLI works VERY slowly with WSL2 for some reason.
- AlchemistCamp 4y agoWSL2 is slow working across the Windows-Linux bridge. If your project files are in the Windows part of your system, I'd strongly suggest moving them to the Linux filesystem. If that's not an option for some reason, then you're better off with WSL1.
- Kwpolska 4y agoYou’re probably using the Angular CLI within the Windows filesystem via WSL2. This tends to be slow, because all your file accesses go through various indirection layers, and that quickly adds up when you’re dealing with thousands of small text files (as you usually are in the JS world). There are two alternatives: 1) working directly with Windows, where Angular CLI and many other things should work just fine and with nice performance, 2) working on the Linux filesystem inside WSL2 (i.e. outside of /mnt/c/), which is a disk image (.vhdx) using ext4 mounted directly in the VM.