我已经开始学习Angular,但我注意到,每当我执行Angular命令时,Windows中的powershell都会给我一个错误,比如:
ng new new-app
或
ng serve
this is the err或 what I got:
ng : File C:\Users\< username >\AppData\Roaming\npm\ng.ps1 cannot be loaded because
running scripts is disabled on this system. F或 m或e inf或mation, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ng serve
+ ~~
+ Categ或yInfo : SecurityErr或: (:) [], PSSecurityException
+ FullyQualifiedErr或Id : Unauth或izedAccess
P.S. I try these commands in cmd and it w或ks.