# How do I use the latest npm version for my Vercel Deployment?

**Author:** Lee Robinson

---

You can use the latest [npm](https://www.npmjs.com/package/npm) version for your [Vercel Deployments](https://vercel.com/docs/platform/deployments) by using one of the three following ways.

## Autodetection

During the Build Step, Vercel will automatically detect the [**Install Command**](https://vercel.com/docs/concepts/deployments/configure-a-build#install-command) based on the presence of either `pnpm-lock.yaml` or `package-lock.json`, and the value of `"lockfileVersion"`.

## Corepack

The experiemental tool [**Corepack**](https://vercel.com/docs/concepts/deployments/configure-a-build#corepack) can be used after adding an [**Environment Variable**](https://vercel.com/docs/concepts/projects/environment-variables) with the name `ENABLE_EXPERIMENTAL_COREPACK` and value `1` to your Project followed by setting the `packageManager` property in the `package.json` file in the root of your repository.

## Install Command

To update your [**Install Command**](https://vercel.com/docs/build-step#install-command), first navigate to your **General** tab in Project Settings. There, you should see your [**Build & Development Settings**](https://vercel.com/docs/build-step#build-&-development-settings). Then, enable the Override toggle. Finally, update the Install Command input with your desired command, such as `npx npm@7 install`.

After you have saved your **Build & Development Settings**, you will need to redeploy or create a new Vercel Deployment to see the updated **Build & Development Settings** applied your deployments.

---

[View full KB sitemap](/kb/sitemap.md)
