ps c:\code\projects\exam portal\examfront>ng add@angular/material
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
1条答案
按热度按时间1mrurvl11#
步骤1:>ps c:\code\projects\exam portal\examfront>set executionpolicy remotesigned-s
步骤2:>ps c:\code\projects\exam门户\examfront>get executionpolicy
远程签名
范围执行策略
步骤3:>ps c:\code\projects\exam-front>ng——版本
步骤4:>ps c:\code\projects\exam portal\examfront>ng add@angular/material