vercel deployment fails with error ERR_PNPM_EEXIST EEXIST: file already exists #6960
Replies: 5 comments
-
I have the same exact issue:
|
Beta Was this translation helpful? Give feedback.
-
The problem was the |
Beta Was this translation helpful? Give feedback.
-
Ok, I also had the exact same error but node and pnpm packages were aligned.
What was not aligned were the dev and production env vars! Newly created env vars in dev weren't created in production and due to build cache in Vercel, it wasn't noticed until forcing a rebuild and receiving a server error. My bad! |
Beta Was this translation helpful? Give feedback.
-
This error is still occuring |
Beta Was this translation helpful? Give feedback.
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
-
Summary
My vercel project is linked to my github project. The creation of a PR triggers a preview deployment. But now all deployments have started failing with below error. After the failure, if I manually restart the build (by ignoring the cache), the build and the deployment complete successfully. Below is the error thrown:
This error occurs when vercel attempts to install dependencies with
pnpm install
. I have tried to disable the cache, to purge the cache.Example
No response
Steps to Reproduce
The failing build is triggered by the creation of a new PR in github
Beta Was this translation helpful? Give feedback.
All reactions