安装时遇到错误:Error: unzip is required to install Deno

Shell 安装脚本需要 unzip 软件。

什么情况下会出现这个错误?

$ curl -fsSL https://deno.land/x/install/install.sh | sh
Error: unzip is required to install Deno (see: https://deno.js.cn/t/topic/167).

当运行 install.sh 时,unzip 用来解压 Deno 的二进制 zip 包。

如何修复这个错误?

你可以通过在 macOS 上运行 brew install unzip 或者 Linux 上运行 apt-get install unzip -y 来安装 unzip 程序。

1 个赞