PHP Composer和Laravel安装程序输出中的奇怪字符-Windows 10 CMD [英] Strange characters in PHP Composer and Laravel installer output - Windows 10 CMD
问题描述
在Windows 10上我有这个问题-PHP Composer显示奇怪的字符.
I have this problem on Windows 10 -- PHP Composer showing strange characters.
我已尝试按照建议此处安装ansicon
并解决了问题,但是如果我尝试在JetBrains PhpStorm中使用终端,则会崩溃...
I have tried to install ansicon
as suggested here and it solved the problem but then if I try to use terminal in JetBrains PhpStorm it's crashing...
也许我需要在没有ansicon
的情况下对其进行修复,但是我找不到方法.
Maybe I need to fix it without that ansicon
but I can't find how.
我仅在笔记本电脑上有此问题-在台式机上,它工作正常.他们都拥有最新版本的Windows 10和PHP + Composer.
I have this problem only on my Laptop -- on my Desktop it's working perfectly fine. They both have Windows 10 and PHP + Composer at the latest versions.
推荐答案
我有同样的问题,朋友.
I had the same problem, friend.
您是否尝试过PowerShell?仅在您没有注意到的情况下,但它现在也可以在Github上使用: https://github.com/PowerShell/PowerShell
Have you tried PowerShell? Only if you didn't notice, but it is also available on Github now: https://github.com/PowerShell/PowerShell
我认为问题在于常见的Windows终端不支持ANSI/VT100颜色.
I think the problem is that the common Windows terminal does not support the ANSI/VT100 colors.
检查此旧线程: 如何使Win32控制台识别ANSI/VT100转义序列?
希望这会有所帮助.
这篇关于PHP Composer和Laravel安装程序输出中的奇怪字符-Windows 10 CMD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!