打开PHPStome,File --> Setting --> Tools --> Terminal 或者是汉化版的文件 --> 设置 --> 工具 --> Terminal
File --> Setting --> Tools --> Terminal
文件 --> 设置 --> 工具 --> Terminal
将Shell path路径改为 C:WindowsSystem32WindowsPowerShellv1.0powershell.exe
C:WindowsSystem32WindowsPowerShellv1.0powershell.exe
关闭当前的终端重新打开即可