volta-cli / volta

Volta: JS Toolchains as Code. ⚡
https://volta.sh
Other
10.32k stars 220 forks source link

error: Could not unpack Node v20.15.0 #1773

Open dougg0k opened 2 weeks ago

dougg0k commented 2 weeks ago
error: Could not unpack Node v20.15.0

Please ensure the correct version is specified.
Error details written to /home/user/.volta/log/volta-error-2024-06-21_12_07_14.142.log
       │ File: /home/user/.volta/log/volta-error-2024-06-21_12_07_14.142.log
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ "/home/user/.volta/bin/volta" "install" "node@lts"
   2   │ Volta v1.1.1
   3   │
   4   │ Could not unpack Node v20.15.0
   5   │
   6   │ Please ensure the correct version is specified.
   7   │
   8   │ Error cause: failed to unpack `/home/user/.volta/tmp/.tmpSWJocN/node-v20.15.0-linux-x64/bin/node`
   9   │
  10   │ Error cause: failed to unpack `/home/user/.volta/tmp/.tmpSWJocN/node-v20.15.0-linux-x64/bin/node`
  11   │
  12   │ Error cause: failed to unpack `node-v20.15.0-linux-x64/bin/node` into `/home/user/.volta/tmp/.tmpSWJocN/node-v20.15.0-linux-x64/bin/node`
  13   │
  14   │ Error cause: Resource temporarily unavailable (os error 11)

It succeeded the second time, so unsure why. Will leave the issue open in case it can be used to do anything about it.

CyntiBinti commented 1 week ago

Same issue for me and oddly as well it succeeded when I re-ran npm i command 🤔

D3X commented 1 week ago

I'm on macOS 14.5 and re-running it does not solve the issue. The error message is a bit different, though:

"volta" "install" "node"
Volta v1.1.1

Could not unpack Node v20.15.0

Please ensure the correct version is specified.

Error cause: failed to unpack `/Users/.../.volta/tmp/.tmpntJmvM/node-v20.15.0-darwin-arm64/bin/node`

Error cause: failed to unpack `/Users/.../.volta/tmp/.tmpntJmvM/node-v20.15.0-darwin-arm64/bin/node`

Error cause: failed to unpack `node-v20.15.0-darwin-arm64/bin/node` into `/Users/.../.volta/tmp/.tmpntJmvM/node-v20.15.0-darwin-arm64/bin/node`

Error cause: corrupt deflate stream

I tried removing the whole ~/.volta directory and reinstalling everything from scratch, but it didn't help

JamieBradders commented 3 days ago

Also experiencing this issue and likewise the workarounds did not work for me. I also received the "corrupt deflate stream" error in the log file.