By default, Vercel automatically determines the right command for installing your project's code dependencies in the Build Step based on the Framework Preset configured for your project and the presence of certain files (like
package-lock.json) in your source code.
As of today, you can customize the command that Vercel will run within the Build Step for installing your code dependencies.
In the new Install Command section within the Project Settings, you can now enter any command of your choice that will be run instead of having Vercel automatically determine the right one for you.
Check out the documentation as well.