PowerShell says “execution of scripts is disabled on this system.”

前端 未结 30 2473
傲寒
傲寒 2020-11-22 00:45

I am trying to run a cmd file that calls a PowerShell script from cmd.exe, but I am getting this error:

Management_Instal

30条回答
  •  臣服心动
    2020-11-22 01:13

    I have also faced similar issue try this hope it helps someone As I'm using windows so followed the steps as given below Open command prompt as an administrator and then go to this path

    C:\Users\%username%\AppData\Roaming\npm\
    

    Look for the file ng.ps1 in this folder (dir) and then delete it (del ng.ps1)

    You can also clear npm cache after this though it should work without this step as well. Hope it helps as it worked for me.

    Hope it helps

提交回复
热议问题