You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fetch 将工具下载到本地机器
install 在你的工具链中安装工具
uninstall 从你的工具链中卸载工具
pin 固定项目的运行时或包管理器
list 显示当前的工具链
completions 生成 Volta 的自动补全脚本
which 定位 Volta 将调用的实际二进制文件
setup 为当前用户 / Shell 启用 Volta
help 打印此消息或指定子命令的帮助信息
卸载 Volta
如果 Volta 不能满足你的需求,你想要卸载它,你可以通过以下方式卸载它。
Unix 系统卸载
在 Unix 系统上完全卸载 Volta 需要两个步骤:
删除整个 ~/.volta 目录
rm -rf ~/.volta
编辑你的 shell 配置文件脚本,移除提及 Volta 的两行内容。Volta 默认查找的配置文件脚本包括:
.bashrc
.bash_profile
.zshrc
.zshenv
config.fish
.profile
注意 修改后你可能需要打开一个新的终端,因为许多 shell 会缓存最近命令的位置。
Windows 系统卸载
在 Windows 上,卸载 Volta 可以通过在开始 > 设置 > 应用的列表中选中它,然后选择 “卸载”。
Activity
MrTian257 commentedon Jul 10, 2025
补充,目前volta install 和 volta pin 只支持安装 node、npm、yarn 三个包的指定。