-
Notifications
You must be signed in to change notification settings - Fork 238
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
os error 1314, required privilege is not held #780
Comments
@3nigm4 That's very odd, especially if it didn't even work in an admin terminal, which should have full permissions to everything on the system. The only thing that comes to mind is that the symlink can't be created at all and the error is misleading. Is your |
Hey thanks for your replay. No they are both on my c drive. |
Hmm, that is very strange indeed, as it doesn't appear like there should be any reason you can't create the symlink. I'll do a bit more investigation to see if there is some other requirement to create symlinks or a common error. |
it also does not work on WSL2:
|
@charlespierce - We could also handle the error and just copy the file I think... (though we should still root cause this to see if we can figure it out) |
@rwjblue True, that's an option. And I actually have an issue #579 to investigate other ways of not using symlinks on Windows. We'd want to be deliberate in the approach, however, to make sure that we clean anything up in situations like upgrades (where we don't want the old binaries to stick around because they were copied). @3nigm4 That WSL error looks different, and I've actually never seen anything like that before. Which distro are you using within WSL? I know I've tested Volta within a WSL environment before, but it's been a while. If there's a distro we aren't supporting we should definitely fix that if possible. Once concern I have is that appears to be a panic within the Rust standard library itself, so it may be an upstream issue that we need to figure out. |
I am using WSL2 and ubuntu 20.04. |
@charlespierce I'm in the same boat as @3nigm4, also on 20.04 (via WSL2)
But the install didn't actually succeed:
|
@3nigm4 @ltomes Are you both sure you're actually using WSL2? It looks like the issue you're seeing is the same as this one: rust-lang/rustup#2293, which is actually on WSL1 with newer If it is that issue, then it's unfortunately not something we can fix from Volta, as it's deeper in the Rust |
You're correct for some reason its running wsl 1.
This is a brand new install in fast ring. It's baffling that it defaulted to WSL, I didn't even consider it might have done that. I'll convert and see how my behavior changes Thanks for pointing me in the right direction. Volta is working as expected in WSL2 |
Same for me, but I still got trouble with global executable installs (now definitely on WSL2). I will create a different issue for this as this should be about windows problem ... |
@3nigm4 When you open that issue I will be following it as well. :)
|
I am on windows 10.
I turned on Developer Mode before install.
I tried running volta in admin terminal.
I was able to install node without issues.
The text was updated successfully, but these errors were encountered: