Linux command
bun-i 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install all dependencies
bun i
Install a specific package
bun i [package]
Install a package
bun i -d [package]
Install a specific version
bun i [package]@[version]
Install packages globally
bun i -g [package]
Install without updating lockfile
bun i --frozen-lockfile
说明
bun i is an alias for bun install. It installs dependencies for a project from package.json, or adds new packages to the project. Bun's package manager is significantly faster than npm or yarn due to its native implementation and efficient caching.
参数
- -d, --dev
- Install as a development dependency.
- -g, --global
- Install packages globally.
- --frozen-lockfile
- Don't update the lockfile.
- --no-save
- Don't save to package.json.
- --production
- Don't install devDependencies.
FAQ
What is the bun-i command used for?
bun i is an alias for bun install. It installs dependencies for a project from package.json, or adds new packages to the project. Bun's package manager is significantly faster than npm or yarn due to its native implementation and efficient caching.
How do I run a basic bun-i example?
Run `bun i` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d, --dev do in bun-i?
Install as a development dependency.