I’m running into a recurring deployment failure on Vercel with both pnpm and npm:
ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/https%3A Not Found
This error indicates that a malformed URL (https:
) is being treated as an npm package name. I’ve already:
- Cleaned and restored my
package.json
multiple times - Removed any stray dependencies pointing to URLs
- Tried both
pnpm install
andnpm install
locally without issues
Everything builds fine on my local machine. The problem only appears in the V0/Vercel build environment. It feels like the build infrastructure is generating or injecting that invalid "https:"
entry at install time, since my GitHub repo’s package.json
does not contain it.
Has anyone experienced a similar issue, or can point me to how Vercel/V0 might be dynamically altering package.json
during the install step? Any ideas on how to force the build to use the correct file would be greatly appreciated.