




















Windows 系统中安装 Scoop 包管理器,适合安装各种开发环境,以及版本管理。
在安装 Scoop 之前,您需要允许 PowerShell 执行本地脚本。
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
当提示时,输入 A 并按回车键确认。
现在您可以安装 Scoop 了。
irm get.scoop.sh | iex
这将下载并执行 Scoop 的安装脚本。
scoop help
为了能够安装更多软件,您可以添加一些常用的 bucket。
也就是Github仓库上的软件清单列表
main
地址:https://github.com/ScoopInstaller/Main
说明:官方主仓库,常用软件和基础工具,默认存在,无需配置。
extras
地址:https://github.com/ScoopInstaller/Extras
说明:较多 GUI 软件、实用工具
versions
地址:https://github.com/ScoopInstaller/Versions
说明:多版本软件(Node.js、Python、JDK 等)
更多包搜索:https://scoop.sh/
scoop bucket add main https://gh-proxy.com/https://github.com/ScoopInstaller/Main.git
scoop bucket add versions https://gh-proxy.com/https://github.com/ScoopInstaller/Versions.git
scoop bucket add extras https://gh-proxy.com/https://github.com/ScoopInstaller/Extras.git
如果源已经存在则需要删除
scoop bucket rm main
查看所有bucket仓库
scoop bucket list
安装的软件存放目录
C:\Users\<你的用户名>\scoop\
scoop search 软件名scoop install 软件名scoop update 软件名scoop update *scoop uninstall 软件名scoop cachescoop cache rm *scoop install nodejs # 最新稳定版
scoop install nodejs20 # 20.x 版本
scoop install nodejs18 # 18.x 版本
scoop list nodejs*
scoop reset nodejs18
这条命令会把 node 命令指向 nodejs18 版本。
node -v
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。