How to fix `listen EACCES: permission denied` on any port
One Windows restart isn't enough, I restarted twice and the problem is gone.
Sorry, I don't have anything more technical.
Except: 1: Try not to develop on WSL from a Windows folder.
In my case the error appears because the port used belong to reserved ports for Hyper-V.
This port range changes when I restart my computer, so sometimes I get the error sometimes no.
To check reserved ports by windows you can use(cmd/powershell):
netsh interface ipv4 show excludedportrange protocol=tcp
The issue is described in: https://github.com/microsoft/WSL/issues/5514
General workround (in comment 554587817): https://github.com/docker/for-win/issues/3171#issuecomment-554587817
Fast workround: choose a port that not belong to reserved ranges
For me it was that node is listening on the wrong network interface.
After using docker it was using the docker network interface as primary.
Disabling the network interface to force node to use the correct interface did the trick.