windows - 如何安装Microsoft Windows Terminal

标签 windows powershell chocolatey windows-terminal

好的,这应该是一个相当简单的问题,但是如果一切都失败了,恐怕它正在成为一个已加载的问题,只是才能安装

Microsoft Windows Terminal

is a new, modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL. Its main features include multiple tabs, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and custom themes, styles, and configurations.



这是一个开源项目,可在Microsoft Windows Terminal获得
  • 尝试从https://github.com/microsoft/terminal安装,我将得到:
    https://github.com/microsoft/terminal/releases
  • 尝试从enter image description here安装,我会得到(如果从Microsoft Shop搜索并单击它,结果将相同):

  • Microsoft Windows Terminal Shop
  • 尝试使用choco install microsoft-windows-terminal安装,我将得到:
    ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation.
    
    Windows cannot install package Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.27810.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00" currently installed are: {Microsoft.VCLibs.140
    Windows cannot install package Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.27810.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00" currently installed are: {Microsoft.VCLibs.140.00_14.0.26706.0_x64__8wekyb3d8bbwe Microsoft.VCLibs.140.00_14.0.26706.0_x86__8wekyb3d8bbwe}
    

  • 尽管我已经用尽了所有搜索内容,但可以肯定的是我有依赖的东西:
    PS > Get-AppxPackage -allusers *Microsoft.VCLibs.140.00* | Select Name, PackageFullName
    
    Name                               PackageFullName
    ----                               ---------------
    Microsoft.VCLibs.140.00.UWPDesktop Microsoft.VCLibs.140.00.UWPDesktop_14.0.26905.0_x64__8wekyb3d8bbwe
    Microsoft.VCLibs.140.00            Microsoft.VCLibs.140.00_14.0.26706.0_x64__8wekyb3d8bbwe
    Microsoft.VCLibs.140.00            Microsoft.VCLibs.140.00_14.0.26706.0_x86__8wekyb3d8bbwe
    Microsoft.VCLibs.140.00.UWPDesktop Microsoft.VCLibs.140.00.UWPDesktop_14.0.27810.0_x64__8wekyb3d8bbwe
    

    那么,再一次,一个简单的问题,如何安装Microsoft Windows Terminal?谢谢。

    最佳答案

    直接从Microsoft Store安装它对我也不起作用。在Windows 10 1909中,我做到了(这是一个msix)。请注意,appx命令在Powershell 7.1中已消失。

    Add-AppxPackage Microsoft.WindowsTerminal_0.11.1191.0_8wekyb3d8bbwe.msixbundle
    
    并安装确定。
    get-appxpackage microsoft.windowsterminal
    
    
    Name              : Microsoft.WindowsTerminal
    Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
    Architecture      : X64
    ResourceId        :
    Version           : 0.11.1191.0
    PackageFullName   : Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe
    InstallLocation   : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe
    IsFramework       : False
    PackageFamilyName : Microsoft.WindowsTerminal_8wekyb3d8bbwe
    PublisherId       : 8wekyb3d8bbwe
    IsResourcePackage : False
    IsBundle          : False
    IsDevelopmentMode : False
    NonRemovable      : False
    Dependencies      : {Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe,
                        Microsoft.VCLibs.140.00.UWPDesktop_14.0.27810.0_x64__8wekyb3d8bbwe}
    IsPartiallyStaged : False
    SignatureKind     : Store
    Status            : Ok
    
    Alt-向下箭头设置可获取默认设置json。

    关于windows - 如何安装Microsoft Windows Terminal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61376154/

    相关文章:

    windows - 如何从 GitHub for windows 隐藏已删除的文件

    windows - 如何从 Windows 应用程序生成 Linux 进程?

    chocolatey - 如何使用 Chocolatey 安装 DotNet4.0?

    windows - 与 Chocolatey 包管理器一起安装时,cygwin setup.exe 二进制文件在哪里?

    windows - Windows 离线时驱动程序签名如何工作?

    c++ - 在 Windows 中停止线程

    powershell - 如何编写对象的单个属性的值?

    powershell - 如何将多个值从 powershell 脚本返回到调用它的批处理文件?

    c# - Powershell Add-Type 在编译 .dll (C#) 时禁止创建 .pdb

    bash - 在 WSL Ubuntu 中使用 Chocolatey VS Code