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

Unable to perform operation on the item is locked in workspace

Insecure cookie setting: missing Secure flag

Display Canvasjs Line Chart using Data from Database