Angular Issue:- ng.ps1 cannot be loaded because running scripts is disabled on this system


Here Create a component get following Error. Why this Error Occured ? we set Permission in the Powershell 




PS H:\Working Folder\ngApps\MyTest1Project> ng g c test
ng : File C:\Users\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



Solution :
  • Open PowerShell Administrator Mode
  • set-ExecutionPolicy Unrestricted  execute this Query and It ask to You Type Yes
  • then it will Works
    


Comments

Popular posts from this blog

Insecure cookie setting: missing Secure flag

Maximum Stored Procedure Function Trigger or View Nesting Level Exceeded (limit 32) in SQL Server

Display Line Chart Using Chart.js MVC C#