---
title: How to pin a specific Bun version for Vercel builds?
description: Learn how to use a specific Bun version for Vercel builds.
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.
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

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
```

![CleanShot 2025-12-10 at 12.08.56@2x.png](https://images.ctfassets.net/hjgychtc108g/4JQtCFx2BvPWveyXtm0aB0/36d786d27a9b33cde5bcb0db3f77d9c7/CleanShot_2025-12-10_at_12.08.56_2x.png)

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

## More Builds guides

- [Why are my Vercel builds queued?](/kb/guide/why-are-my-vercel-builds-queued): Learn about why your Vercel builds may be getting queued and how to resolve this.
- [How do I use the "Ignored Build Step" field on Vercel?](/kb/guide/how-do-i-use-the-ignored-build-step-field-on-vercel): Instructions on how to use the "Ignored Build Step" field to programmatically prevent a new deployment from being built.
- [How can I allowlist IP addresses for a deployment?](/kb/guide/how-to-allowlist-deployment-ip-address): Vercel deployments use dynamic outbound IPs by default. Learn how to allowlist IP addresses for a deployment with Static IPs or Secure Compute.