Solving VScode Angular installation issue
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 digitall开发者_JAVA百科y 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
精彩评论