要添加一个 npm 包作为 peer 依赖,使用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.
--peer 标志。
terminal
这将把该包添加到
package.json 中的 peerDependencies。
package.json
运行
bun install 会默认安装 peer 依赖,除非在 peerDependenciesMeta 中标记为可选。
package.json
完整的 Bun 包管理器文档请参见 Docs > Package manager。