---
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"
last_updated: 2026-06-17
authors: Anna Z.
related:
  - /docs/builds/configure-a-build
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:

`bunx bun@1.3.1 install`

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