-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
exit status 1: Access is denied. #780
Comments
Ah I guess this is an expected change after 1.1.7 Doesn't running Windows in Developer mode presenting more security risks than before using 1.1.7 without it? |
How come when I run "nvm use xyz" in Visual Studio Code I am not prompted for UAC and instead it fails. I think if it the command fails it was explicitly necessary, yet I was not prompted? |
These symptoms all sound like they're versions of #767 |
VS Code won't run anything as an admin unless it is opened with an account that has admin privileges. This is more of a problem of VS Code than with NVM4W. The UAC prompts were a workaround for VS Code, so use NVM v1.1.7 if you need this capability in VS Code. I'm planning to bring UAC prompts back in rt, so I'm tryin to avoid further changes in NVM4W. I'm closing this, in part because it's a duplicate of #717 and in part because there isn't anything that can be done specifically for VS Code other than reverting back to UAC prompts. |
I'm having this issue now after updating. The problem is I run this on a corporate-owned computer and even getting privileges to run anything as an admin is already a routine struggle on its own. Also, there is no "Developers" settings page in Windows 10 for me, so not sure what that is. The UAC prompts were ideal because I could just run it in my existing terminal and wasn't forced to have to open a totally separate elevated |
same issue. i could bypass it by running PowerShell with admin privileges, but its not really ideal as @patricknelson states. |
@quantrpeter - that is not the same issue. That is a download failure. The npm repo for 6.14.17 has a bad link. |
@coreybutler The thing is that it's still a problem. NVM 1.1.7 cannot install node versions above 16.13.2. And if upgrading NVM to 1.1.9, then UAC is broken. |
@coreybutler I just noticed you did exactly that in 1.1.10 and fixed UAC. So this ticket can be considered fixed and maybe the tag "edge case" removed considering the release notes mentioning "Many users have requested UAC prompts be reinstated." |
How To Reproduce:
Windows 10
An old nvm installation working correctly. (not sure of the version I had, 1.1.7 ?)
Close Visual Studio Code.
Try to upgrade this old nvm with nvm-update.zip
After apparently a successful upgrade occurs but now nothing works anymore with node and it complains of permissions errors.
Uninstall nvm from Windows using the Settings > Apps & features / Add or remove programs
Install 1.1.9 from nvm-setup.zip
Re-launch Visual Studio Code
nvm install 16.14.2
nvm use 16.14.2 <= this fails with access is denied
exit status 1: Access is denied.
Actual Result
exit status 1: Access is denied.
Expected Behavior:
No access is denied error
The text was updated successfully, but these errors were encountered: