-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvm install may failed with broken cache #1291
Comments
I'm not sure I understand the initial failure - it looks like it downloaded What does |
@ljharb I'm going to figure out the download process, something may go wrong there. The problem can be re-produce by breaking the local cache like |
All that should do is cause the file to be redownloaded - the way the process was written is that if there's anything wrong with the file, it's just replaced. |
oops, the other problem may came from my local patch. |
error message without my patch:
|
ok, so that looks like it might be an issue with |
@ljharb I guess the problem came from the Removal of the broken file could solve this problem, but I also wonder if we need the "continue" option anymore? As local cache will definitely help saving the bandwidth and time, maybe |
- Delete broken/checksum not matched local cache - More output message.
On systems without the ability to verify a sha256 checksum, they still benefit from the |
The problem here seems to be the auto-detect may not be reliable enough lol... then it caused the continued tar failed... |
curl's native autodetect for resuming, you mean? If that's true, then that's a good reason to remove it. |
Yes, that's for resuming, but it seems to assume any file there with the same filename the same file to download, that's the problem. As we now have cache feature, once the download finished, we could usually use the cached tarball, I think that part helps more than this resuming. BTW, I didn't test the scenario on wget yet. |
- Delete broken/checksum not matched local cache - More output message.
If it comes down to it, I'm fine to remove the "resumable" part. |
- Delete broken/checksum not matched local cache - More output message.
- Delete broken/checksum not matched local cache - More output message.
A broken local cache may fail the installation process as below, please note that the output was generated by a modified nvm by my patch, for help debug and improve the user experience.
The text was updated successfully, but these errors were encountered: