本页还没有译文
本页 6 段还没译成日本語,下面显示的是英文原文。Add a dependency
还没翻译译自英文(bun.com)本页 6 段都还没译
To add an npm package as a dependency, use bun add.
bun add zodThis adds the package to dependencies in package.json. By default, Bun uses the ^ range specifier, which accepts future minor and patch versions.
{
"dependencies": {
"zod": "^4.0.0"
}
}To pin your project to the exact version you installed, use --exact. This adds the package to dependencies without the ^.
bun add zod --exactTo specify an exact version or a tag:
bun add zod@3.0.0
bun add zod@nextSee bun install.
AI 翻译查看英文原文