Replies: 2 comments
|
Hello! This is indeed an enhancement should be done on Vite+ side. Really thanks for reporting that! I'll create an issue from this discussion and you can leave a comment if you want to try improving that! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am in corporate environment where public npm registry is blocked.
even If I set
NPM_CONFIG_REGISTRY,vp installstill failing as it is not using theapikeyhere is what Claude say:
Root cause found. Your package.json pins "packageManager": "pnpm@11.24.0" (package.json:52). Like Corepack, vp downloads that exact pnpm binary into its own managed store (~/.vite-plus/package_manager/pnpm, currently empty on your machine) rather than using whatever pnpm is on PATH. That download is done by vp's own Rust binary hitting the npm-style tarball URL directly — it's a separate code path from the pnpm/npm CLI that reads ~/.npmrc.
Verified this in two parts:
So this is a real gap: for a pinned packageManager version, vp can't authenticate to a token-only private registry when fetching the manager itself.
Practical options:
NPM_CONFIG_REGISTRY=https://<user>:<apikey>@xyz.jfrog.io/...would let vp's downloader authenticate via URL-embedded Basic auth.All reactions