---
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-10-16
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).