snail 蜗牛 (@jestemlin)原来我一直用的是powershell 5,而不是powershell7 中发帖

输入 $PSVersionTable 可查看版本 
 [image] 
执行 winget install --id Microsoft.PowerShell --source winget 安装最新版本 
 [image] 
安装后,启动还是 powershell5 不是 7,要执行pwsh切换后才是 
 [image] 
这里选择 PowerShell,或者创建一个PowerShell 7 
 [image] 
再开终端,就是PowerShell 7[image]
 
 
Back to Top