GeezerVison is showing github.com — Installation via mise-en-place · Issue #943 · voidzero-dev/vite-plus
Installation via mise-en-place #943DescriptionDescription
I am using mise to manage all my toolchain right now. Currently, viteplus does not show up in registry, nor is there an easy way to install without running an installation script.
Suggested solution
It would be great if it’s possible to install the vp CLI via mise like mise use -g vite-plus or mise use -g vp.
The recommended method would be to put it in the aqua registry. Alternatively, mise can also install binaries from GitHub Releases, however Vite+ doesn’t publish binaries via GitHub Releases yet (right now binaries seems to be published on npm, however, I would not recommend using npm backend because it depends on Node.js, which vp intends to manage).
Alternative
Additional context
I tried using the http backend to install vp CLI directly from npm registry without going through npm CLI.
# ~/.config/mise/config.toml
[tools]
"http:vite-plus" = {
version = "0.1.11",
platforms = {
macos-arm64 = { url = "https://registry.npmjs.org/@voidzero-dev/vite-plus-cli-darwin-arm64/-/vite-plus-cli-darwin-arm64-{{version}}.tgz" },
macos-x64 = { url = "https://registry.npmjs.org/@voidzero-dev/vite-plus-cli-darwin-x64/-/vite-plus-cli-darwin-x64-{{version}}.tgz" },
linux-x64 = { url = "https://registry.npmjs.org/@voidzero-dev/vite-plus-cli-linux-x64-gnu/-/vite-plus-cli-linux-x64-gnu-{{version}}.tgz" },
linux-arm64 = { url = "https://registry.npmjs.org/@voidzero-dev/vite-plus-cli-linux-arm64-gnu/-/vite-plus-cli-linux-arm64-gnu-{{version}}.tgz" },
windows-x64 = { url = "https://registry.npmjs.org/@voidzero-dev/vite-plus-cli-win32-x64-msvc/-/vite-plus-cli-win32-x64-msvc-{{version}}.tgz" },
windows-arm64 = { url = "https://registry.npmjs.org/@voidzero-dev/vite-plus-cli-win32-arm64-msvc/-/vite-plus-cli-win32-arm64-msvc-{{version}}.tgz" }
}
}
This is based on the description on the docs:
Vite+ ships in two parts: vp, the global command-line tool, and vite-plus, the local package installed in each project.
$ mise install
http:[email protected] generate checksum vite-plus-cli-darwin-arm64-0.1.11.tgz
✅ Installed successfully. Confirmed vp binary is installed on both Mac and Linux.
$ vp help
VITE+ - The Unified Toolchain for the Web
✅ `vp help` works
$ vp create
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module '/Users/dtinth/.local/share/mise/http-tarballs/node_modules/vite-plus/dist/bin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
❌ `vp create` installs Node v24.14.0 correctly, but then crashes
$ mise uninstall http:vite-plus
🧹 Uninstall the `vp` CLI managed by mise (manually remove the config afterwards after running)
It seems like the vp CLI also kinda depends on the vite-plus npm package being installed globally which prevented this setup from working.
Validations
- Read the Contributing Guidelines.
- Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- Check that there isn't already an issue requesting the same feature.
Reacted by TT, curlykay, Iha Shin (신의하), Daiki Nishikawa, Julien Ripouteau, Nathanaël Labreuil, Craig P. Motlin, Aria Amini, Nikolas Schröter, Amr Gad and 30 more Activityfengmk2 commented on Mar 16, 2026 Because vp is also a Node.js runtime manager, installing vp through mise requires handling the Node.js runtime conflict issues involved. dtinth commented on Mar 16, 2026 Just a bit of update on my investigation of v0.1.11, I am able to get Vite+ to run and build an app with the above mise configuration by doing this (tested on docker run -ti --rm debian:trixie with only mise installed and vp installed per above config):
# Manually create a folder for installing the global `vite-plus` package
mkdir ~/.vite-plus/0.1.11
env -C ~/.vite-plus/0.1.11 vp env exec npm init -y
env -C ~/.vite-plus/0.1.11 vp env exec npm install [email protected]
Then add to ~/.config/mise/config.toml:
[env]
VITE_GLOBAL_CLI_JS_SCRIPTS_DIR = "{{ env.HOME }}/.vite-plus/0.1.11/node_modules/vite-plus/dist"
Thankfully, Vite+ allows the Global CLI JS directory to be overridden via env var. So now vp dev, vp build, vp test, vp lint works ✅.
However, the node, npm, npx, vpx shims are not working, as it seems to be hardcoded to symlink to ../current/bin/vp.
# ls -l ~/.vite-plus/bin/
total 4
lrwxrwxrwx 1 root root 17 Mar 16 08:45 node -> ../current/bin/vp
lrwxrwxrwx 1 root root 17 Mar 16 08:45 npm -> ../current/bin/vp
lrwxrwxrwx 1 root root 17 Mar 16 08:45 npx -> ../current/bin/vp
lrwxrwxrwx 1 root root 17 Mar 16 08:45 vp -> ../current/bin/vp
-rw-r--r-- 1 root root 158 Mar 16 08:59 vp-use.cmd
lrwxrwxrwx 1 root root 17 Mar 16 08:45 vpx -> ../current/bin/vp
However, vp env exec node works works well ✅ (I am fine with that, now all JS-related stuff really goes through vp CLI).
We can manually create shims though:
# cd "$(dirname "$(mise which vp)")"
# ln -s vp vpx
# ln -s vp node
# ln -s vp npm
# ln -s vp npx
# mise reshim
After this, we can directly run Node.
# node
Welcome to Node.js v24.14.0.
Type ".help" for more information.
>
IMO, if we don't install Node.js via Mise and just use vp instead, then there is no conflict. nwidynski commented on Mar 26, 2026 Is there a reason why you don't want to carry vite-plus as a package dependency? Since you are already managing node with mise anyways, I'm not sure what the advantage of installing it via http backend would be over adding it to package.json. merodiro commented on Mar 26, 2026 When I installed it using npm backend
[tools]
"npm:vite-plus" = "latest"
It mostly worked but vp test fail without any obvious errors. but when I used http backend as mentioned here it worked. not sure what is the difference nwidynski commented on Mar 26, 2026 I meant adding vite-plus as a normal package.json dev dependency. Why are you managing it via mise? You dont need vp env or vp migrate if you manage idiomatic node versions with mise anyways.
"devDependencies": {
"vite-plus": "latest",
"@voidzero-dev/vite-plus-core": "latest"
},
"overrides": {
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
}markmals commented on Apr 1, 2026 @nwidynski the local installation via npm doesn't include a lot of the commands, such as vp add, vp remove, vpx, etc.
I've created my own plugin for Mise in the meantime. You can use it like so:
[plugins]
vite-plus = "https://github.com/markmals/mise-vite-plus"
[tools]
vite-plus = "latest" Reacted by Torsten Rüter, nekomoyi, cog25 and Patt O'Brien Reacted by Ian Hernandez, Ribelio, Can Rau, Ashley Engelund, Anthony McClosky and Patt O'Brien greypants commented on Jun 18, 2026 Reacted by Metin Bektas, Andrei Danciu and haruna dtinth commented on Jun 18, 2026 risu729 commented on Jun 18, 2026 Hi, I'm a contributor to mise. It shows up in the registry, but it doesn't work well because Vite+ requires both a binary and an npm package. The npm backend only requires the npm package, not the binary.
I don't understand well how Vite+ works or is distributed, so I might be wrong. Reacted by Emre Şafak, Craig P. Motlin, JongKyung Lee , Metin Bektas, Andrei Danciu, Alexander Lichter and Daniel Tatarkin Reacted by Torsten Rüter Reacted by Torsten Rüter sushichan044 commented on Jun 24, 2026 I assume the vite-plus npm package is intended to be managed in package.json for each project,
so my understanding is that we want to manage the binary version with mise. dynamsoft-h commented on Sep 23, 2026 Is there any interest to adding a packslip manifest to the releases to get accepted into the mise registry? packslip is the preferred mise backend and are implied to have a higher rate of acceptance into the registry.
However we must choose a different name since both vp and viteplus have already been taken by the npm package. methbkts commented on Sep 23, 2026 mise considers backends in registry order and selects the first enabled backend that supports the requested version and platform.
For example, aube has these backends, in preference order:
| Short |
Full |
| aube |
packslip:github.com/aubepkg/aube
aqua:jdx/aube
github:jdx/aube
cargo:aube |
The current viteplus entry has only the npm backend:
| Short |
Full |
| viteplus |
npm:vite-plus |
But we could easily include packslip first:
| Short |
Full |
| viteplus |
packslip:github.com/voidzero-dev/vite-plus
npm:vite-plus |
Refs: Backends, Adding Tools Reacted by h-dynamsoft, Kentaro Suzuki and Daniel David Sintimbrean joeblew999 commented on Oct 20, 2026 I tried every way mise offers to install vp (mise 2026.10.15, vite-plus 1.3.0, macOS arm64), for a pnpm workspace that should need nothing but mise. None gives a working global vp yet:
-
vp / viteplus from the registry (npm:vite-plus). It installs, but it is the project-local CLI (vp pack cannot find publint or attw when vp comes from a global npm install of vite-plus #2795). In vp run, the vp pack step builds with the global copy's tsdown and fails, although typescript is in the workspace:
error: TypeScript is not installed. Please install the `typescript` package ...
at requireTSApi (file:///…/.local/share/mise/installs/vp/1.3.0/node_modules/.mise/[email protected]/node_modules/vite/dist/tsdown/dist-CuTXlJR8.js:68:9)
It fails the same way with the project's node_modules/.bin first on PATH.
-
github:voidzero-dev/[email protected]. The releases now carry vp-<target>.tar.gz and vp-checksums.txt, and mise installs the binary fine. But vp env setup run from that binary prints installing [email protected]... Installing dependencies and creates a second full copy in ~/.local/share/vite-plus/1.3.0. Its shims (node, vp, vpx, vpr) all point at ~/.local/share/vite-plus/current/bin/vp, not at the binary mise installed, so mise up updates a copy nothing runs.
How it could work both ways, with and without mise. Most of the pieces already exist:
- The Node.js conflict mentioned at the top of this issue is already handled by system-first mode: under mise,
vp env off node defers to the Node that mise puts on PATH.
- The native binaries ship on every release since 1.0.0, with checksums.
- What is missing is that the binary keeps running from where it was installed. It could fetch its JavaScript half into a per-version cache on first use, as it already does for Node, instead of installing a second copy of itself and pointing the shims there. Add an opt-out from editing shell profiles (like rustup's
--no-modify-path or uv's UV_NO_MODIFY_PATH), and the same binary behaves the same from the installer, Homebrew or mise. uv, bun, deno and ruff work this way.
The registry's vp entry could then move from npm: to github: (or packslip, as suggested above).
What works today with only mise, in case it helps others here: mise provides Node from .node-version and pnpm from devEngines (idiomatic_version_file_enable_tools = ["node", "pnpm"]), a postinstall hook runs pnpm install, and the project's own vp from the lockfile goes on PATH:
[settings]
idiomatic_version_file_enable_tools = ["node", "pnpm"]
[env]
_.path = ["{{config_root}}/node_modules/.bin"]
[hooks]
postinstall = "pnpm install --frozen-lockfile"
mise install, then vp run …, passes the whole workspace's checks. The cost is that vp exists only inside projects that have it as a dependency.
joeblew999 commented on Oct 20, 2026 One thing worth saying directly: the way Vite+ installs itself is the exception among comparable tools, not the norm. uv, bun, deno, ruff, rustup, Go and Node itself all follow the same convention:
- One binary that runs from wherever it was installed. Their own installer, Homebrew, mise, or a CI cache all give you the same working tool.
- Whatever installed it, updates it.
mise up or brew upgrade updates the copy that actually runs.
- No second copy of itself, and no shims pointing elsewhere. Anything it fetches later goes into a cache keyed by version.
- Shell profiles are left alone when asked (
UV_NO_MODIFY_PATH, rustup's --no-modify-path).
That's why mise use uv, bun or deno just work, with nothing special in mise, and why mise's maintainers can't make the vp entry work from their side: the installer is the one piece that doesn't follow the convention.
Vite+ already does most of this. The per-platform binaries ship with checksums on every release, and system-first mode handles the Node clash. What's left is the same small set: run from where installed, fetch the JS half into a versioned cache on first use, and offer a no-modify-path switch. Then one binary serves the installer, Homebrew, mise and CI alike, and the Homebrew, apt and devcontainer plans in #1324 get it for free. Reacted by Metin Bektas, Emre Şafak, Ryan Shaw and Patt O'Brien
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|