将 Flutter SDK 通道从 Stable 更改为 Master 后,我现在在运行 Flutter 命令时出现此错误:
Error: PowerShell executable not found.
Either pwsh.exe or PowerShell.exe must be in your PATH.
Run Code Online (Sandbox Code Playgroud)
小智 5
转到系统属性 -> 高级系统设置 -> 环境变量 -> 用户变量 -> 路径
将 powershell.exe 添加到环境变量中的路径中。你可以在这里找到它
C:\Windows\System32\WindowsPowerShell\v1.0
Ali*_*zad -1
安装 Windows Management Framework 5.1 后解决了我的问题
链接: https: //www.microsoft.com/en-us/download/confirmation.aspx? id= 54616。
| 归档时间: |
|
| 查看次数: |
9936 次 |
| 最近记录: |