You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document installing and running Vite+ on machines with no internet access #3296
Our build agents and deploy servers are Windows machines with no internet. Everything installs from a private npm registry (Verdaccio) where we mirror each package by hand, including every platform-specific native binary. So for each Vite+ upgrade we need to know exactly which packages to mirror, and whether anything reaches out to the internet at runtime.
What we worked out ourselves for 1.4.0 on win32-x64, using only the local CLI from node_modules:
vite-plus pulls @voidzero-dev/vite-plus-win32-x64-msvc, @oxlint/binding-win32-x64-msvc, @oxfmt/binding-win32-x64-msvc and @oxlint-tsgolint/win32-x64 through optional dependencies of vite-plus, oxlint, oxfmt and oxlint-tsgolint. @voidzero-dev/vite-plus-core adds lightningcss and the platform list again.
With proxies and NPM_CONFIG_REGISTRY pointed at a dead port, vp lint, vp fmt --check, vp check --no-lint and a cached vp run all worked. That's not a real isolated-network test, so we can't be sure nothing else is fetched (for example by vp test or vp create).
The global installer and vp env need the npm registry and Node.js downloads. NPM_CONFIG_REGISTRY and VP_NODE_DIST_MIRROR cover that. VP_LOCAL_TGZ and VP_LOCAL_BINARY look like they would allow a fully offline global install, but the docs list them as development variables.
Your Suggestion for Changes
A short "offline / private registry" section, maybe in guide/global-cli.md or guide/ci.md, that says:
which commands of the local CLI may touch the network, if any;
the native packages per platform for a release (or where to read them, e.g. a field in the published toolchain.json);
whether VP_LOCAL_TGZ / VP_LOCAL_BINARY are supported for offline global installs or should be avoided.
@ReemX, I opened draft PR #3520 with a Windows example for installing the project-local CLI from Verdaccio. It also explains how to find the native packages to mirror for each release and which commands may still try to download something.
Does this cover how you install and run Vite+ on your Windows build agents without public internet access? If a step is missing, could you point out where you’d need more detail?
On Node: no, we have no Node.js mirror. IT installs Node once per machine from the official Windows installer, and pnpm comes from Verdaccio with npm install -g pnpm. We don't plan to use the global vp or vp env on those machines, only the project-local CLI from node_modules. So the CI section of #3520 is the one that matters for us, and its approach works: on a clean Windows x64 project with [email protected] and pnpm 12.18.0, pnpm list --lockfile-only --depth Infinity --json listed every native package we mirror, including the two new ones in 1.7.0 (@tsrs/win32-x64 and @yuku-core/binding-win32-x64).
One thing the draft understates. I pointed the registry at a local server that logs requests and started with an empty Vite+ cache (VP_HOME set to an empty folder, pnpm 12.18.0 on PATH):
Every command I tried requested @pnpm/exe.win32-x64/12.18.0, not only vp lint and vp test: vp fmt --check, vp check, vp test run and vp run build all did, 4 requests each. vp --version didn't.
If the registry refuses quickly (503), each command still succeeds, about 5 s slower.
If the registry or proxy accepts the connection and never answers, which is common on our network, each request waits for the 2-minute request timeout. vp fmt --check on two files took 486 s and then passed.
@pnpm/exe.win32-x64 isn't in the pnpm list --lockfile-only output (pnpm 12 records it under packageManagerDependencies), so a mirror built from the lockfile steps in the draft won't have it.
VP_ENV_FORBIDDEN=1 avoids the requests on 1.7.0: vp lint, vp check, vp test run and vp run build made none and passed. vp install then refuses ("does not manage pnpm"), which is fine for us since we run pnpm install directly.
I read that #3386 removes the download for the local CLI when there's no global install, so this goes away in the next release. Until then, it might help to say in the 1.7.0 note that it applies to every command and to mention VP_ENV_FORBIDDEN=1, or mirroring @pnpm/exe.<platform> for the pinned version.
@ReemX, thanks for testing this on Windows x64 and sharing the request logs. I updated draft PR #3520 with the VP_ENV_FORBIDDEN=1 workaround you verified. It lets you keep using pnpm install directly and prevents vp from trying to download pnpm. Starting with 1.8.0, your project-local CLI will use pnpm from PATH without that setting.
Could you take another look at the offline CI section and let us know if it covers your Verdaccio setup?
@fengmk2 yes, that covers our setup. I re-ran the offline CI section as written on Windows x64 with pnpm 12.16.1, a fresh VP_HOME for every command and the registry pointed at a server that logs requests:
Without VP_ENV_FORBIDDEN, vp fmt --check, vp lint, vp check, vp test run and vp run build each made 4 requests for @pnpm/exe.win32-x64. Same on 1.6.0 and 1.7.0, so the "1.6.x and 1.7.x" scope in the tip is right.
With VP_ENV_FORBIDDEN=1 all of them made zero requests. Against a registry that accepts the connection and never answers, they finished in about a second instead of hanging.
vp install with the variable set stops with Vite+ does not manage pnpm, as the tip says, and pnpm install --frozen-lockfile followed by .\node_modules\.bin\vp.cmd check works.
One small suggestion: the last paragraph under "Which commands can use the network?" describes the stall but not the fix. Someone who lands on that section from search could miss the tip above it, so a closing sentence like "On 1.6.x and 1.7.x, set VP_ENV_FORBIDDEN=1 to skip this lookup." would help.
Thanks, this is what we needed for our build agents.
Activity
voidzero-bot commentedon Oct 31, 2026
voidzero-bot commentedon Nov 21, 2026
fengmk2 commentedon Nov 21, 2026
@ReemX Vite+ also installs the Node binary. Do you also have a dedicated download site configuration for this?
fengmk2 commentedon Nov 21, 2026
@ReemX, I opened draft PR #3520 with a Windows example for installing the project-local CLI from Verdaccio. It also explains how to find the native packages to mirror for each release and which commands may still try to download something.
Does this cover how you install and run Vite+ on your Windows build agents without public internet access? If a step is missing, could you point out where you’d need more detail?
ReemX commentedon Nov 21, 2026
Thanks for writing this up so fast.
On Node: no, we have no Node.js mirror. IT installs Node once per machine from the official Windows installer, and pnpm comes from Verdaccio with
npm install -g pnpm. We don't plan to use the globalvporvp envon those machines, only the project-local CLI fromnode_modules. So the CI section of #3520 is the one that matters for us, and its approach works: on a clean Windows x64 project with[email protected]and pnpm 12.18.0,pnpm list --lockfile-only --depth Infinity --jsonlisted every native package we mirror, including the two new ones in 1.7.0 (@tsrs/win32-x64and@yuku-core/binding-win32-x64).One thing the draft understates. I pointed the registry at a local server that logs requests and started with an empty Vite+ cache (
VP_HOMEset to an empty folder, pnpm 12.18.0 onPATH):@pnpm/exe.win32-x64/12.18.0, not onlyvp lintandvp test:vp fmt --check,vp check,vp test runandvp run buildall did, 4 requests each.vp --versiondidn't.vp fmt --checkon two files took 486 s and then passed.@pnpm/exe.win32-x64isn't in thepnpm list --lockfile-onlyoutput (pnpm 12 records it underpackageManagerDependencies), so a mirror built from the lockfile steps in the draft won't have it.VP_ENV_FORBIDDEN=1avoids the requests on 1.7.0:vp lint,vp check,vp test runandvp run buildmade none and passed.vp installthen refuses ("does not manage pnpm"), which is fine for us since we runpnpm installdirectly.I read that #3386 removes the download for the local CLI when there's no global install, so this goes away in the next release. Until then, it might help to say in the 1.7.0 note that it applies to every command and to mention
VP_ENV_FORBIDDEN=1, or mirroring@pnpm/exe.<platform>for the pinned version.With that, the PR covers what we need.
fengmk2 commentedon Nov 21, 2026
@ReemX, thanks for testing this on Windows x64 and sharing the request logs. I updated draft PR #3520 with the
VP_ENV_FORBIDDEN=1workaround you verified. It lets you keep usingpnpm installdirectly and preventsvpfrom trying to download pnpm. Starting with1.8.0, your project-local CLI will use pnpm fromPATHwithout that setting.Could you take another look at the offline CI section and let us know if it covers your Verdaccio setup?
ReemX commentedon Nov 21, 2026
@fengmk2 yes, that covers our setup. I re-ran the offline CI section as written on Windows x64 with pnpm 12.16.1, a fresh
VP_HOMEfor every command and the registry pointed at a server that logs requests:VP_ENV_FORBIDDEN,vp fmt --check,vp lint,vp check,vp test runandvp run buildeach made 4 requests for@pnpm/exe.win32-x64. Same on 1.6.0 and 1.7.0, so the "1.6.x and 1.7.x" scope in the tip is right.VP_ENV_FORBIDDEN=1all of them made zero requests. Against a registry that accepts the connection and never answers, they finished in about a second instead of hanging.vp installwith the variable set stops withVite+ does not manage pnpm, as the tip says, andpnpm install --frozen-lockfilefollowed by.\node_modules\.bin\vp.cmd checkworks.One small suggestion: the last paragraph under "Which commands can use the network?" describes the stall but not the fix. Someone who lands on that section from search could miss the tip above it, so a closing sentence like "On 1.6.x and 1.7.x, set
VP_ENV_FORBIDDEN=1to skip this lookup." would help.Thanks, this is what we needed for our build agents.
docs(ci): document offline installs with a private registry (voidzero…