-
-
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 #717
Comments
@CASPERg267 try to open the CMD as administrator |
Ideally this would be addressed with a UAC dialog for those of who have local admin privileges but are not able to enable a Developer mode (likely due to running on an older version of Win10 or due to being locked out because of group policy restrictions). Would you be willing to add the option to configure |
Even then, not everyone has administrative rights to the computer (some of us work with impossed restrictive policies) and as of testing it today with developer mode activated, this no longer works as intended (i.e. I have developer mode active, yet I get access denied when issuing an nvm use command). |
@coreybutler I found a solution for that as people can install both node and nvm in another disk (e.g. d:/) in order to avoid this. Perhaps consider adding this as a suggestion in your doc. |
@terryjiang2020 has correctly cited that Windows protects some directories, even if you have developer mode enabled. Per the suggestion, I've added the following change to the wiki: |
curious that this has only become an issue lately...what has changed? |
same issue here :( |
@coreybutler To reduce the number of people having this confusing problem, it might be a good idea to modify NVM4W to check whether it has administrative permissions proactively at launch, and display a meaningful warning. Or even link to the relevant README. I've found that it's possible to get into some quite odd states because some NVM4W commands work without admin permissions but some do not. |
@coreybutler - may I suggest another potential addition to the wiki? I've struggled for a few hours with this access denied error, enabling developer mode, using different folders to store my node installations. I was able to run the nvm commands from a normal command prompt or PowerShell terminal, but still got the access denied error in VS Code. I finally found the issue was caused by the repository I was working on was cloned into my user's documents folder. I closed VSCode, moved the whole folder structure out of my documents folder and into a new folder, re-opened VSCode and blam, everything worked perfectly. |
Please update the guide: Checklist before installing nvm-windows
-- c:\nvm4w
Run the installer as an administrator.
Test everything is ok
Run it
|
running |
I couldn't get I think admin rights are too restricted on my machine. I'm going to manually install multiple nodes and just switch my PATH each time. I don't see why nvm needs to run as adminstrator anyway? I feel like it would be much more accessible to most users if it ran as a regular user. You wrote in the docs that "Windows requires elevated administrative privileges to create symlinks", but that's not true. On my Windows 10, I can create a symlink to a dir as a normal user with |
Also I think the admin rights are only for when you install into one of the "Program Files" folders, as those require special permissions. After I installed nvm to a regular folder it works just fine without admin privileges. |
I'm locking this conversation because comments are starting to deviate from the subject. If you have suggestions or wish to discuss a feature, the discussions is the appropriate place to do it. I do not make a habit of reading through closed issues. |
Issue:
i get access is denied when i try to use specific version of node
How To Reproduce:
i installed 2 version node 14 and node 16
when trying to use node version 14 by typing
nvm use 14.18.2
i get this errorsame error happens when using v16
Expected Behavior:
It should use node version i choose to use
The text was updated successfully, but these errors were encountered: