NikNek
NikNek

Reputation: 9

Trying to create my first project in angular

Im running the ng new name and an error occurred. Do you have any idea why is this happening?

ng : File C:\Users\nraftis\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

Upvotes: 0

Views: 229

Answers (1)

NikNek
NikNek

Reputation: 9

ok i found the solution.

  1. run as adninistrator Powershell
  2. run " Set-ExecutionPolicy -Scope CurrentUser""
  3. set ExecutionPolicy: Unrestricted

and its done!

enter image description here

Upvotes: 1

Related Questions