Bun 的包管理器可以安装任何公开可用的 tarball URL 作为你的项目依赖。Documentation Index
Fetch the complete documentation index at: https://bun.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
terminal
运行此命令将会下载、解压并安装该 tarball 到你项目的
node_modules 目录。同时,它会将以下内容添加到你的 package.json 文件中:
package.json
包
"zod" 现在可以像平常一样导入使用。
完整的 Bun 包管理器文档请参见 Docs > Package manager。