Prashant Poojary
Prashant Poojary

Reputation: 1

It is not creating folder ??Cant Find out the error?

ng g c header

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

It should create a folder header

Upvotes: 0

Views: 53

Answers (1)

Yassin Mo
Yassin Mo

Reputation: 610

Open PowerShell or cmd in administrative mode and run the following command

Set-ExecutionPolicy RemoteSigned

or try this command in terminal(Visual Studio Code terminal or any IDE you are using)

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser

Upvotes: 0

Related Questions