I\'m having this weird error and I did not suceed to find the origin. First of all I would like to say that I succeeded to perform some installation of Magento 2 on a window
First please delete 'static' folder from 'pub/static' in magento 2 before delete this folder please copy .htaccess file from this folder in other folder in your pc. <-- Changes in app\code\Magento\Developer\etc\di.xml -->
Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink
<--to-->
Magento\Framework\App\View\Asset\MaterializationStrategy\Copy
After that using cmd/shell run these commands
php bin/magento setup:static-content:deploy -f
and
php bin/magento deploy:mode:set developer
After runing these commands .Paste old .htaccess file into new static folder. Thats it. And Clear Full Cache.
php bin/magento cache:clean
Your project working now enjoy!