Window winget package management tool installation stepping pit record

1. Introduction

  • If you want to windowinstall an easy-to-use package management tool macon homebrew, windowyou should think twice and use the official one winget.

  • The official documentation for winget .

2. Installation process and stepping pit record

  • Press win + xto select Powershell(管理员)the mode to open cmd, and execute the following command:

    $ winget
    

    The result is an error:

    winget : 无法将“winget”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径
    正确,然后再试一次。
    所在位置 行:1 字符: 1
    + winget
    + ~~~~~~
        + CategoryInfo          : ObjectNotFound: (winget:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    
  • So I went to 微软商店(microsoft store)search inside wingetand found that it was installed. It may be that the version is too old and needs to be updated.

    image.png

  • There are two ways to update

Guess you like

Origin blog.csdn.net/zz00008888/article/details/131091717