The OP is asking for local development by using yarn develop, independently of the fact that might be using the wrong command in stage/production.
I’m having the same issue, my strapi develop command works like a charm in Ubuntu, but not for windows (I have two development PCs, one with Ubuntu/latest and other with Window 10).
Edit:
Despite the OP having used some kind of installation procedures aside from the officials, this error also happens on fresh installs.