---
title: How to pin a specific Bun version for Vercel builds?
description: Learn how to use a specific Bun version for Vercel builds.
url: /kb/guide/how-to-pin-a-specific-bun-version-for-vercel-builds
canonical_url: "https://vercel.com/kb/guide/how-to-pin-a-specific-bun-version-for-vercel-builds"
published: 2025-12-10
last_updated: 2026-06-17
authors: Anna Z.
related:
  - /docs/builds/configure-a-build
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---
<!-- docsgraph:related -->
## Related pages

> **For AI agents:** Follow these links to understand how this page connects to the rest of the Vercel ecosystem. For the full cross-link map (inbound, outbound, prerequisites, and semantic neighbors), see the .graph.md link below.

- [Bun](https://vercel.com/docs/functions/runtimes/bun?from=related) — Learn how to use the Bun runtime with Vercel Functions to create fast, efficient functions.
- [Package Managers](https://vercel.com/docs/package-managers?from=related) — Discover the package managers supported by Vercel for dependency management. Learn how Vercel detects and uses npm, Yarn
- [vercel build](https://vercel.com/docs/cli/build?from=related) — Learn how to build a Vercel Project locally or in your own CI environment using the vercel build CLI command.
- [Build Features](https://vercel.com/docs/builds/build-features?from=related) — Learn how to customize your deployments using Vercel's build features.
- [Vercel](https://turborepo.dev/docs/guides/ci-vendors/vercel?from=related) — Deploy your Turborepo on Vercel with zero-config Remote Caching.
- [General Settings](https://vercel.com/docs/project-configuration/general-settings?from=related) — Configure basic settings for your Vercel project, including the project name, build and development settings, root direc
- [How do I use the latest npm version for my Vercel Deployment?](https://vercel.com/kb/guide/how-do-i-use-the-latest-npm-version-for-my-vercel-deployment?from=related) — Learn how to use the latest npm version for Vercel deployments.
- [Per-environment and per-branch Build Commands on Vercel](https://vercel.com/kb/guide/per-environment-and-per-branch-build-commands?from=related) — Customize your commands for specific behaviors based on branch, environment, and more.
- [How can I add a custom build step to my project? ](https://vercel.com/kb/guide/how-can-i-add-a-custom-build-step-to-my-project?from=related) — Learn how to add a custom build step for your project.
- [Dynamically run build commands](https://vercel.com/kb/guide/dynamic-build-commands?from=related) — Learn how to run different scripts based on the environment or branch.
- [Does Vercel support Yarn 3?](https://vercel.com/kb/guide/does-vercel-support-yarn-3?from=related) — Information on Vercel's support for Yarn 3.

Full cross-link map for this page: [/kb/guide/how-to-pin-a-specific-bun-version-for-vercel-builds.graph.md](/kb/guide/how-to-pin-a-specific-bun-version-for-vercel-builds.graph.md)
<!-- /docsgraph:related -->


In Project Settings or vercel.json, use `bunx bun@x.x.x install` as the [Install Command](https://vercel.com/docs/builds/configure-a-build#install-command). For example:

```javascript
bunx bun@1.3.1 install
```

For pnpm and Yarn, use [Corepack](https://vercel.com/docs/builds/configure-a-build#corepack).