I use XAMPP on Windows 10. I installed Magento 2.20 community. My admin URLs are all broken:
Is there another version I should use? I tried to run the commands from this post:
Magento 2 – Links in Admin wont work
In my console, I see these errors:
/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ytheme-magento.css:1 Failed to load resource: net::ERR_CONNECTION_RESET
/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css:1 Failed to load resource: net::ERR_CONNECTION_RESET
require.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
mixins.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:71 Uncaught TypeError: require is not a function
at requirejs-config.js:71
at requirejs-config.js:78
at requirejs-config.js:416
magento-icon.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):38 Uncaught TypeError: require.config is not a function
at (index):38
(index):87 Uncaught TypeError: require is not a function
at (index):87
(index):295 Uncaught TypeError: require is not a function
at (index):295
(index):428 Uncaught TypeError: require is not a function
at (index):428
(index):473 Uncaught TypeError: require is not a function
at (index):473
(index):514 Uncaught TypeError: require is not a function
at (index):514
(index):537 Uncaught TypeError: require is not a function
at (index):537
(index):560 Uncaught TypeError: require is not a function
at (index):560
admin-icons.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
admin-icons.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
admin-icons.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
2
Answers
I run Magento 2 on Windows (for development) successfully although I use WAMP. My recipe for setting it up is as follows (I adapted it from another stackexchange Q&A but can’t find it). Note my locale is en_GB, replace yours below:
Doesn’t know whether the following will help you out, Please check.
In your screen shot i can see that you are already in magento/bin path, so here you have to run below command
And for second command yo are using two php in command.
You can avoid sudo if not needed. Or else go to magento root and run the earlier command which you already tried to implement.
Hope this will help you to sort out.