Thursday 18 February 2021

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

Solution: Run the following command from the same terminal or command prompt and re-run the ng command to check if it works on your machine:

Sol 1:  Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Sol 2: make sure that you are running the command in the application root folder..

 


 

 

Ref: ng : File \AppData\Roaming\npm\ng.ps1 cannot be loaded. The file npm\ng.ps1 is not digitally signed Angular Error when running commands

Ref: Angular CLI Error: The serve command requires to be run in an Angular project, but a project definition could not be found 

No comments:

Post a Comment