NVM is Access Denied

2019-08-18 05:48发布

问题:

I have been using nvm to manage multiple node version. but it stopped working after trying to install a wrong dependency on Angular 5 app. I was trying to install ng-redux instead of ng2-redux.

I am unable to figure out the issue. Thanks for your help in advance

Erorr:

nvm ls
Program 'nvm.exe' failed to run: Access is deniedAt line:1 char:1
+ nvm ls
+ ~~~~~~.
At line:1 char:1
+ nvm ls
+ ~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

回答1:

This issue is fixed after reinstalling nvm-setup.exe