bun-package-manager

Manages JavaScript dependencies with Bun install, add, remove, update, workspaces, and lockfiles.

Updated Jun 22, 2026
One-click install
npx skills add https://github.com/aicodepro/ai-agent-nexi --skill bun-package-manager-aicodepro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-package-manager
Source: https://github.com/aicodepro/ai-agent-nexi/tree/main/agent/skills/bun-package-manager
Command: npx skills add https://github.com/aicodepro/ai-agent-nexi --skill bun-package-manager-aicodepro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing JavaScript dependencies with npm, yarn, or pnpm can be slow and inconsistent across environments. This Skill provides complete guidance for using Bun's package manager, which installs dependencies up to 25x faster than npm while handling lockfiles, workspaces, and migrations. ## Core Features & Use Cases - Dependency Management: Install, add, remove, and update packages with commands like bun install, bun add, and bun update, including dev, optional, and peer dependency scopes. - Monorepo Workspaces: Configure workspaces in package.json and run filtered commands across packages with bun run --filter. - Lockfile & Migration Support: Work with the text-based bun.lock file, enforce frozen lockfiles in CI with bun ci, and migrate automatically from npm, yarn, or pnpm lockfiles. - Use Case: You are migrating a pnpm monorepo to Bun. Run bun install to auto-convert pnpm-lock.yaml to bun.lock, move workspace config into package.json, and use bun install --filter to install dependencies for specific packages. ## Quick Start Ask the assistant to install your project's dependencies and add a new package using Bun, for example by requesting it to run bun install and then add react as a dependency.

Frequently Asked Questions about bun-package-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install dependencies with Bun?

Run `bun install` in your project root to install all dependencies from package.json. Use `bun add <pkg>` to add new dependencies, `bun add -D <pkg>` for dev dependencies, and `bun install --frozen-lockfile` or `bun ci` in CI environments.

How do I migrate from npm, yarn, or pnpm to Bun?

Run `bun install` in your existing project and Bun automatically reads package-lock.json, yarn.lock, or pnpm-lock.yaml and generates a bun.lock file. For pnpm workspaces, move the workspace configuration into package.json.

Does Bun support monorepo workspaces?

Yes, Bun supports workspaces declared in package.json with a workspaces array like ["packages/*"]. Use `bun run --filter 'pkg-*' build` to run scripts in matching packages and `bun install --filter` to install for specific workspaces.

Why does Bun skip lifecycle scripts after install?

Bun does not run postinstall scripts from dependencies by default as a security measure against supply chain attacks. Add trusted packages to the trustedDependencies array in package.json, or use --ignore-scripts to skip all scripts explicitly.

What is the difference between hoisted and isolated installation in Bun?

Hoisted creates a traditional flat node_modules layout and is the default for single packages. Isolated uses pnpm-like strict isolation, is the default for workspaces, and prevents phantom dependencies by only exposing declared dependencies.