I have vercel installed as a global npm package.
Whenever I invoke a vc command in a repo and Vercel detects an upgrade is available, it alerts me and prompts to upgrade, which of course makes sense.
What I’m confused and frequently frustrated by, is that the upgrade then insists on adding vercel as a dependency to the local package.json I happen to be working in, whether or not it is currently there, as well as correspondingly modifying package-lock.json.
Is this by design? If so, why?
My understanding is that Vercel is intended to installed globally, and adding it as a local dependency just adds a bunch of installation complexity, and would require npx anyway. Even if you wanted to, I don’t understand it’s the default behavior.
If relevant, my npm (and node) are installed and managed by Homebrew.