I had an error:
ng : File
....\node_modules\.bin\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
Working with Angular in WebStorm, and this simple command has helped me:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
If anyone knows what this command does, I would appreciate it. I would like to learn a little more, what was the problem and why this command that I found on the Internet has helped me.
Thanks to https://stackoverflow.com/users/7296835/stanley-mohlala for the command.
No ng command worked.
ng generate component xxxxx
neither
ng g component xxxx
neither
ng g c xxxx
I couldn't see the Angular version either, I got an error.
ng version
The error :
ng : File
C:\www\angular004560\node_modules\.bin\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.