Skip to content
Docs

Package Managers

Vercel will automatically detect the package manager used in your project and install the dependencies when you create a deployment. It does this by looking at the lock file in your project and inferring the correct package manager to use.

If you are using Corepack, Vercel will use the package manager specified in the package.json file's packageManager field instead.

The following table lists the package managers supported by Vercel, with their install commands and versions:

Package ManagerLock FileInstall CommandSupported Versions
Yarnyarn.lockyarn install1, 2, 3, 4
npmpackage-lock.jsonnpm install8, 9, 10, 11
pnpmpnpm-lock.yamlpnpm install6, 7, 8, 9, 10, 11, 12
Bun 1bun.lockb or bun.lockbun install1
Vlt
Beta
vlt-lock.jsonvlt install0.x

While Vercel automatically selects the package manager based on the lock file present in your project, the specific version of that package manager is determined by the version information in the lock file or associated configuration files.

The pnpm package manager creates a lockfileVersion property when it generates a lock file. This property specifies the lock file's format version, ensuring proper processing and compatibility. For example, a pnpm-lock.yaml file with lockfileVersion: 9.0 will be interpreted by pnpm 9 or 10, while a pnpm-lock.yaml file with lockfileVersion: 5.4 will be interpreted by pnpm 7.

For npm, Vercel does not select the version from the lock file. Your build uses the npm version that comes with your project's Node.js version.

Package ManagerConditionInstall CommandVersion Used
pnpmpnpm-lock.yaml: presentpnpm installVaries
lockfileVersion: 9.0-pnpm 9 or 10*
lockfileVersion: 7.0-pnpm 9
lockfileVersion: 6.0/6.1-pnpm 8
lockfileVersion: 5.4-pnpm 7
Otherwise-pnpm 6
npmpackage-lock.json: presentnpm installVaries
Node 22-npm 10
Node 24-npm 11
Node 26-npm 11
Bunbun.lockb: presentbun installBun 1
bun.lock: presentbun installBun 1
Yarnyarn.lock: presentyarn installYarn 1
Vltvlt-lock.json: presentvlt installVlt 0.x

pnpm-lock.yaml version 9.0 can be generated by pnpm 9 or 10. Newer projects will prefer 10, while older prefer 9. Check build logs to see which version is used for your project.

When no lock file exists, Vercel uses npm by default. Npm's default version aligns with the Node.js version as described in the table above. Defaults can be overridden using installCommand or Corepack for specific package manager versions.

You can manually specify a package manager to use on a per-project, or per-deployment basis.

To specify a package manager for all deployments in your project, use the Override setting in your project's Framework Settings:

  1. Navigate to your dashboard and select your project
  2. Open Settings in the sidebar and select Build and Deployment
  3. Enable the Override toggle for the Install Command in the Framework Settings section and add your install command. Once you save, it will be applied on your next deployment

When you use an override install command like pnpm install, Vercel still selects the package manager version from the lock file in your project, as described in Supported package managers. If your project has no lock file for that package manager, Vercel uses the oldest version available in the build container. For example, pnpm install without a pnpm-lock.yaml file uses pnpm 6.

To specify a package manager for a deployment, use the installCommand property in your projects vercel.json.

vercel.json
{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "installCommand": "pnpm install"
}
Last updated August 11, 2026

Was this helpful?

supported.