0
ng : File C:\Users\unknown\AppData\Roaming\npm\ng.ps1 cannot be loaded. The file C:\Users\unknown\AppData\Roaming\npm\ng.ps1 is not digitally signed. You cannot run this script on the current         
system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ng
+ ~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

//execute the above command and restart the VSCode again, and retry, it should work well

Ijaas
  • 1
  • 1
  • npm cache clear --force – Stefani Toto Dec 07 '22 at 14:28
  • Does this answer your question? [why am I suddenly getting: ng : File C:\Users\d\AppData\Roaming\npm\ng.ps1 cannot be loaded](https://stackoverflow.com/questions/72863930/why-am-i-suddenly-getting-ng-file-c-users-d-appdata-roaming-npm-ng-ps1-canno) – starball Jun 23 '23 at 19:23

0 Answers0