**我遇到了跟随错误,但现在 ng cmd 在 vs vode 中运行。 错误:**
ng : File C:\Users\swami\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 .....
+ ~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
如果您遇到此类错误,请按照以下步骤解决错误。
set-executionpolicy remotesigned
然后输入 A
[A] Yes to All错误已解决
如果您遇到此类错误,请按照以下步骤解决错误。
set-executionpolicy remotesigned
然后输入 A
[A] Yes to All|错误已解决|