我在Windows 10上使用XAMPP。我安装了Magento 2.20社区。我的管理员网址已损坏:
我应该使用另一个版本吗?我试图从这篇文章中运行命令:
Magento 2 - Links in Admin wont work
在控制台中,我看到以下错误:
/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)
答案 0 :(得分:0)
尽管我使用WAMP,但我仍在Windows(用于开发)上成功运行了Magento 2。我设置它的方法如下(我从另一个stackexchange问答改编了它,但是找不到)。请注意,我的语言环境是en_GB,请在下面替换您的语言环境:
答案 1 :(得分:0)
不知道以下内容是否对您有帮助,请检查。
在您的屏幕截图中,我可以看到您已经在magento / bin路径中,因此在这里您必须在命令下运行
sudo magento setup:upgrade
对于第二个命令,您正在命令中使用两个php。
如果不需要,可以避免使用sudo。否则,请转到magento root并运行您已经尝试实现的先前命令。
希望这可以帮助您进行梳理。