对于高级用户,请参考英文原文: https://scoop.sh/

Win+X ,选择 终端 (不带管理员) 打开。
image

安装 scoop

粘贴回车执行:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

如果您希望使用 NJU 镜像源完成安装,请访问 https://get.scoop.sh 将内容保存为 install.ps1
打开保存的文件,找到脚本末尾附近的:

$SCOOP_PACKAGE_GIT_REPO = 'https://github.com/ScoopInstaller/Scoop.git'
$SCOOP_MAIN_BUCKET_GIT_REPO = 'https://github.com/ScoopInstaller/Main.git'

将它们改为:

$SCOOP_PACKAGE_GIT_REPO = 'https://mirror.nju.edu.cn/git/scoop.git'
$SCOOP_MAIN_BUCKET_GIT_REPO = 'https://mirror.nju.edu.cn/git/scoop-main.git'

然后运行安装脚本:

.\install.ps1

安装 git

如果你缺少 git 安装,你将无法正常使用 scoop 的大多数功能
请运行以下命令安装 git

scoop install git

切换镜像源

执行下面的命令添加镜像源

scoop bucket rm main
scoop bucket add main https://mirror.nju.edu.cn/git/scoop-main.git
scoop bucket add extras https://mirror.nju.edu.cn/git/scoop-extras.git
scoop bucket add java https://mirror.nju.edu.cn/git/scoop-java.git
scoop bucket add nerd-fonts https://mirror.nju.edu.cn/git/scoop-nerd-fonts.git
scoop bucket add nonportable https://mirror.nju.edu.cn/git/scoop-nonportable.git
posted on 2026-05-29 11:23  tlwc  阅读(76)  评论(0)    收藏  举报