windows常用命令

  • 更换winget源

    1
    2
    3
    4
    5
    6
    #替换源USTC源
    winget source remove winget
    winget source add winget https://mirrors.ustc.edu.cn/winget-source

    //重置为官方地址
    winget source reset winget

  • 更换npm镜像源

    1
    2
    3
    4
    5
    6
    # 淘宝镜像源
    npm config set registry https://registry.npmmirror.com
    npm config get registry

    #恢复官方源
    npm config set registry https://registry.npmjs.org