0
votes

ng : File C:\Users\Jothi\AppData\Roaming\npm\ng.ps1 cannot be loaded. The file C:\Users\Jothi Tamil\AppData\Roaming\npm\ng.ps1 is not digitally 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 --version
  • ~~
    • CategoryInfo : SecurityError: (:) [], PSSecurityException
    • FullyQualifiedErrorId : UnauthorizedAccess
1
the link that you put here gives the answer. That's always a good startFelix

1 Answers

1
votes

You should invoke following command to change ExecutionPolicy to RemoteSigned. Because default policy is Restricted, it prevents running of all script files.

$ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned