Nb
Study
.com
🔍 请输入搜索关键字

在window子系统安装bun报错:error: unzip is required to install bun

nbstudy 发表于 2024-06-27 09:28:35

在window子系统安装bun报错:error: unzip is required to install bun

报错信息 "error: unzip is required to install bun" 表示在尝试安装名为 "bun" 的软件时,系统检测到需要使用 unzip 工具来解压缩一个文件,但是 unzip 并未安装在系统上。

由于我的windows子系统是 Ubuntu,因此可以使用 apt 安装:

bash 复制代码
sudo apt-get update
sudo apt-get install unzip

执行以上命令后,再次安装bun即可。

bash 复制代码
curl -fsSL https://bun.sh/install | bash

# 安装完成使用 bun -v 查询使用安装成功