0

ng add @angular/material ng : File C:\Users\welcome\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1

  • ng add @angular/material
  • ~~
    • CategoryInfo : SecurityError: (:) [], PSSecurityException
    • FullyQualifiedErrorId : UnauthorizedAccess
Mahdi Zarei
  • 5,644
  • 7
  • 24
  • 54

1 Answers1

0
  1. Run Command Prompt as administrator
  2. Run cd <your-path-to-project>
  3. Run ng add @angular/material
Mahdi Zarei
  • 5,644
  • 7
  • 24
  • 54