-
-
Notifications
You must be signed in to change notification settings - Fork 743
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
No such file or directory (WSL, Ubuntu 19.10) #594
Comments
#368 - relative issue |
It looks like the tarball download or expansion produced no folders, but did not fail the install. Do you see any other messages during the install? Worth trying The related issue mentions proxy, are you behind a proxy? |
No, I'm not behind proxy. |
Can you install other versions? e.g.
If you got a one-off network failure, it could leave behind a broken folder. You could try deleting it and installing again:
|
Same problem here:
|
|
Thanks for full output from install which has an important clue, unpacking the tarball is failing. Either the download is corrupt or there is a compatibility problem with the version of tar:
What are your tar details? (So I can compare against what I see and try reproducing.)
|
|
Output was always full. Some strings are not appearing sometimes. |
I just noticed the WSL, so I'm not going to be able to reproduce this in a docker container! 🙂 I found one similar error:
You can try the download and extract separately to try and narrow down which is failing:
|
I think the failed install creates a folder with the version number and further attempts fail without attempting the download again. |
Yep. I have been using n for a long time before upgrading to Ubuntu 19.10. Everything was OK on 19.04. |
But picking node version from list via |
As I said, everything was OK on Ubuntu 19.04, so this may be important. :) |
That would make sense if you downloaded the versions in the list before you upgraded to WSL 19.10? (Good title change, thanks. Looking like the 19.04 to 19.10 change broken something.) |
May be so. I'll check on my laptop. – I've made a clean installation of Ubuntu 19.10 (WSL) there. |
On clean Ubuntu 19.10 (WSL), all options of |
So, as I see, this VSCode issue (microsoft/vscode-remote-release#1744) is almost the same. |
So, temporary solution is:
The bug is in WSL / gzip, not in your package. Thank you for your help! |
Glad you found the cause! |
Bug Report
Summary
Can not install latest node.js via n on Ubuntu 19.10 (WSL)
Steps to Reproduce
Expected Behaviour
latest node.js version is installed
Actual Behaviour
Configuration Details
$ n --version 6.1.0 $ command -v node /usr/bin/node $ node -p process.platform linux
The text was updated successfully, but these errors were encountered: