GeezerVison is showing github.com — node download not resuming · Issue #2449 · voidzero-dev/vite-plus
node download not resuming #2449DescriptionDescribe the bug
Any vp run command will try to download the latest node version before executing anything. I'm on a slow mobile network with download rates typically around 200-300 KiB/s. After some weeks away I wanted to work on my project. vp tried to download node about 50MiB with an estimated download time of roughly 5m.
currently:
The node download is constantly resetting and starts over from 0 / 49.81 MiB sometimes after having downloaded 90%+ only seconds before finishing. I tried about half an hour before I gave up after about ten restarts.
supposed to:
The download should resume from what it has downloaded already and not start over from 0.
Reproduction
no url - it's a command line issue
Steps to reproduce
Simulate a slow and unstable network and try to run vp with an outdated node version.
System Info
$ vp env current
VITE+ - The Unified Toolchain for the Web
Environment:
Version 24.19.0
Source lts
Tool Paths:
node /Users/martin/.vite-plus/js_runtime/node/24.19.0/bin/node
npm /Users/martin/.vite-plus/js_runtime/node/24.19.0/bin/npm
npx /Users/martin/.vite-plus/js_runtime/node/24.19.0/bin/npx
Package Manager:
Name pnpm
Version 11.17.0
Source devEngines.packageManager
Source Path /Users/martin/work/oyo/wosamma/package.json
Project Root /Users/martin/work/oyo/wosamma
Bin Path /Users/martin/.vite-plus/package_manager/pnpm/11.17.0/pnpm/bin/pnpm
$ vp --version
VITE+ - The Unified Toolchain for the Web
vp v0.2.6
Local vite-plus:
vite-plus v0.2.5
Tools:
vite v8.1.4
rolldown v1.1.5
vitest v4.1.10
oxfmt v0.58.0
oxlint v1.73.0
oxlint-tsgolint v0.24.0
tsdown v0.22.7
Environment:
Package manager pnpm v11.17.0
Node.js v24.19.0
$ which node
/Users/martin/.vite-plus/bin/node
$ /Users/martin/.vite-plus/bin/node --version
Downloading node v24.19.0...
⠓ [00:00:02] [>---------------------------------------] 435.69 KiB/49.81 MiB (144.82 KiB/s, 6m)
$ system_profiler SPHardwareDataType
2026-08-14 10:13:03.399 system_profiler[58867:2775409] hw.cpufamily: 0x5f4dea93
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: Mac15,7
Model Number: MRW13D/A
Chip: Apple M3 Pro
Total Number of Cores: 12 (6 Performance and 6 Efficiency)
Memory: 18 GB
System Firmware Version: 18000.121.3
OS Loader Version: 18000.121.3
Serial Number (system): *****
Hardware UUID: *****
Provisioning UDID: *****
Activation Lock Status: Disabled
$ df -h /dev/disk3s1s1
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk3s1s1 460Gi 12Gi 57Gi 17% 459k 600M 0% /
Used Package Manager
pnpm
Logs
$ vp run something
VITE+ - The Unified Toolchain for the Web
error: Failed to download Node.js runtime: Failed to download from https://nodejs.org/dist/v24.19.0/node-v24.19.0-darwin-arm64.tar.gz: error decoding response body: request or response body error: operation timed out
vp update available: 0.2.6 → 0.2.9, run vp upgrade
$ vp upgrade
info: checking for updates...
info: found [email protected] (current: 0.2.6)
info: downloading [email protected] for darwin-arm64...
info: installing...
Downloading node v24.19.0...
⠲ [00:04:05] [>---------------------------------------] 712.00 KiB/49.81 MiB (239.46 KiB/s, 4m)
^C%
Validations
Activitychanged the title [-]Download not resuming[/-] [+]node download not resuming[/+] on Aug 14, 2026fengmk2 commented on Aug 14, 2026 #2386 has already increased the download timeout to 10 minutes.
@tarikermis Are you willing to continue improving this slow network download issue? oyo commented on Aug 14, 2026 Looks like the issue is with the node wrapper that comes with vite+. Interesting vp env showing the version 24.19.0 installed but it's not there.
$ vp env
...
Tool Paths:
node /Users/martin/.vite-plus/js_runtime/node/24.19.0/bin/node
...
$ ls /Users/martin/.vite-plus/js_runtime/node/24.19.0
ls: /Users/martin/.vite-plus/js_runtime/node/24.19.0: No such file or directory
$ ls -lF /Users/martin/.vite-plus/js_runtime/node/
total 64
drwxr-xr-x 9 martin staff 288 Mar 21 16:51 24.14.0/
-rw-r--r-- 1 martin staff 0 Mar 21 16:51 24.14.0.lock
drwxr-xr-x@ 9 martin staff 288 Mar 25 16:55 24.14.1/
-rw-r--r--@ 1 martin staff 0 Mar 25 16:55 24.14.1.lock
drwxr-xr-x 9 martin staff 288 Apr 16 10:31 24.15.0/
-rw-r--r-- 1 martin staff 0 Apr 16 10:31 24.15.0.lock
drwxr-xr-x@ 9 martin staff 288 May 22 08:16 24.16.0/
-rw-r--r--@ 1 martin staff 0 May 22 08:16 24.16.0.lock
drwxr-xr-x@ 9 martin staff 288 Jun 19 04:24 24.17.0/
-rw-r--r--@ 1 martin staff 0 Jun 19 04:24 24.17.0.lock
drwxr-xr-x@ 9 martin staff 288 Jun 24 08:51 24.18.0/
-rw-r--r--@ 1 martin staff 0 Jun 24 08:51 24.18.0.lock
drwxr-xr-x@ 9 martin staff 288 Jul 30 17:23 24.18.1/
-rw-r--r--@ 1 martin staff 0 Jul 30 17:23 24.18.1.lock
-rw-r--r--@ 1 martin staff 30230 Aug 14 10:30 index_cache.json
$ which node
/Users/martin/.vite-plus/bin/node
$ /Users/martin/.vite-plus/bin/node --version
Downloading node v24.19.0...
⠓ [00:00:02] [>---------------------------------------] 435.69 KiB/49.81 MiB (144.82 KiB/s, 6m)
constantly restarting again RSS1102 commented on Aug 14, 2026 I think it started downloading, which is why it created this file directory and the lock tag, but you didn't completely download the entire artifact. Could it be a problem between you and your Node.js node? Could you try switching to a mirror that offers faster access?
🚣♂️ I'll try to reproduce it later. tarikermis commented on Aug 14, 2026 Yeah, happy to continue with this. I checked the current download path and each retry recreates the archive file, so a transient body error starts the download again from zero.
I also confirmed that nodejs.org ignored the Range request in my probe even though it advertises byte ranges, so I need to handle unsupported resume safely rather than append blindly. I'll work on a fix with regression coverage and report back here.
Best Regards, Tarik oyo commented on Aug 14, 2026 Apparently the issue is unrelated to a slow network connection. Something else is broken in the setup. I just created a new user profile and installed vite+ from scatch there. This worked as expected with an installation of node 24.19.0
$ sudo sysadminctl -addUser test -fullName "test" -password "test" -createHome
$ login test
test$ curl -fsSL https://vite.plus | zsh
test$ source .zshenv
test$ vp env current
VITE+ - The Unified Toolchain for the Web
Environment:
Version 24.19.0
Source lts
Tool Paths:
node /Users/test/.vite-plus/js_runtime/node/24.19.0/bin/node
npm /Users/test/.vite-plus/js_runtime/node/24.19.0/bin/npm
npx /Users/test/.vite-plus/js_runtime/node/24.19.0/bin/npx
test$ which node
/Users/test/.vite-plus/bin/node
test$ node --version
v24.19.0 tarikermis commented on Aug 14, 2026 Thanks, that narrows it down a lot. Since the clean user succeeds on the same machine and network, could you compare these between the two profiles?
env | grep -Ei "^(HTTP|HTTPS|ALL|NO)_PROXY=|^(SSL_CERT_FILE|NODE_EXTRA_CA_CERTS|VP_)="
scutil --proxy
Please redact any credentials in proxy URLs. Vite+ reads the proxy and certificate settings when it creates its HTTP client, so a difference there could explain why the existing profile times out while the new one works.
Separately, the retry path does discard partial bytes today, so I am still testing that hardening. I agree that it is probably not the original trigger in your setup though.
Best Regards, Tarik oyo commented on Aug 14, 2026 I'm not behind any http proxy. The output is identical in both user profiles:
$ env | grep -Ei "^(HTTP|HTTPS|ALL|NO)_PROXY=|^(SSL_CERT_FILE|NODE_EXTRA_CA_CERTS|VP_)="
$ scutil --proxy
<dictionary> {
ExceptionsList : <array> {
0 : *.local
1 : 169.254/16
}
FTPPassive : 1
}tarikermis commented on Aug 14, 2026 Thanks, that rules the proxy path out. I traced the upgrade flow and found one relevant difference: Vite+ only switches the current version after the production dependencies are installed, and that step can invoke the managed Node shim.
Since your upgrade started on 0.2.6 and was interrupted during that Node download, 0.2.9 may never have become current. Could you run vp --version once more in the original profile and share the first few lines?
If it still reports 0.2.6, that would explain why the clean profile behaves differently and gives us a much more direct path to verify the fix.
Best Regards, Tarik oyo commented on Aug 14, 2026 In the original profile home dir there is still 0.2.6:
$ vp --version
VITE+ - The Unified Toolchain for the Web
vp v0.2.6
Local vite-plus:
vite-plus Not found
Tools:
vite Not found
rolldown Not found
vitest Not found
oxfmt Not found
oxlint Not found
oxlint-tsgolint Not found
tsdown Not found
Environment:
Package manager Not found
Node.js v24.19.0 tarikermis commented on Aug 14, 2026 Thanks, that confirms the upgrade never reached the final switch. The new version is prepared first, but Vite+ only updates current after its production dependencies finish installing. Since it was interrupted during the managed Node download, the original profile stayed on 0.2.6 and never picked up the longer timeout from 0.2.9.
The safest recovery should be to rerun the normal installer from the original profile and let it complete:
curl -fsSL https://vite.plus | zsh
source ~/.zshenv
vp --version
node --version
Could you try that and let us know whether vp --version reports 0.2.9 afterwards?
I am still testing the retry hardening separately, but this explains the difference between the two profiles.
Best Regards, Tarik Reacted by Martin Rohrmeier tarikermis commented on Aug 14, 2026 I have opened #2452 for the retry path. It keeps partial bytes for mirrors that honor Range and safely restarts if the server returns a full 200 response. nodejs.org currently does the latter, so I kept the upgrade recovery separate from the resume hardening.
The focused crate tests and clippy are passing. I will update the PR if your installer retry shows anything else.
Best Regards, Tarik oyo commented on Aug 14, 2026
Could you try that and let us know whether vp --version reports 0.2.9 afterwards?
That solved it. Thanks! However still unclear how I got into this corrupt state.
$ curl -fsSL https://vite.plus | zsh
Setting up VITE+...
name=0.2.4
name=0.2.5
name=0.2.6
name=0.2.9
name=bin
name=cache
name=current
name=js_runtime
record_shell_summary:2: read-only variable: status
$ source ~/.zshenv
$ vp --version
VITE+ - The Unified Toolchain for the Web
vp v0.2.9
Local vite-plus:
vite-plus Not found
Tools:
vite Not found
rolldown Not found
vitest Not found
oxfmt Not found
oxlint Not found
oxlint-tsgolint Not found
tsdown Not found
Environment:
Package manager Not found
Node.js v24.19.0
$ node --version
v24.19.0
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|