In summary, to enable long paths, two ways:
Ensure LongPathsEnabled is set to 1:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] "LongPathsEnabled"=dword:00000001
I prefer this option 2: In PowerShell (as admin) just run this line:
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Unfortunately, you will have to reboot your computer. Reference (and further explanation): Microsoft documentation here.