---
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 install is now supported with zero configuration](https://vercel.com/changelog/bun-install-is-now-supported-with-zero-configuration?from=related&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=related)
- [Using the Bun Runtime with Vercel Functions](https://vercel.com/docs/functions/runtimes/bun?from=related&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=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&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=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&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=related) — Learn how to build a Vercel Project locally or in your own CI environment using the vercel build CLI command.
- [Bun runtime now in Public Beta for Vercel Functions](https://vercel.com/changelog/bun-runtime-now-in-public-beta-for-vercel-functions?from=related&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=related)
- [Bun 1.4 is now available in Vercel Functions](https://vercel.com/changelog/bun-1-4-is-now-available-in-vercel-functions?from=related&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=related)
- [Bun's text lockfile is now supported with zero configuration](https://vercel.com/changelog/buns-text-lockfile-is-now-supported-with-zero-configuration?from=related&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=related)
- [Bun runtime for Vercel Functions now accepts Bun.serve as an entrypoint](https://vercel.com/changelog/bun-serve-entrypoint-for-vercel-functions?from=related&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=related)
- [Build Features for Customizing Deployments](https://vercel.com/docs/builds/build-features?from=related&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=related) — Learn how to customize your deployments using Vercel's build features.
- [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&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=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&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=related) — Customize your commands for specific behaviors based on branch, environment, and more.
- [Does Vercel Support Yarn? \\(Versions 2, 3, and 4\\)](https://vercel.com/kb/guide/does-vercel-support-yarn-4?from=related&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=related) — Vercel supports Yarn 1, 2, 3, and 4. Learn which version your build uses by default, and how to pin Yarn 4 with Corepack

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?from=related&source_path=%2Fkb%2Fguide%2Fhow-to-pin-a-specific-bun-version-for-vercel-builds&source_site=vercel-kb&relationship=graph)
<!-- /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).