开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜