Angular 1

Start Project

Step 1: To install angular in specific folder

npm install -g @angular/cli

Step 2: creatre project


PS D:\Angular_Food_DeliverApp> ng new foodorder

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

+ ng new foodorder

+ ~~

    + CategoryInfo          : SecurityError: (:) [], PSSecurityException

    + FullyQualifiedErrorId : UnauthorizedAccess

Getting given below error




Run this command

Step 1

First, you have to need to open the command prompt and run this command.

set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Step 2

Now you have to run the second command on your system. This command is:

Get-ExecutionPolicy

Step 3

To view their policy, you need to run this command in your command prompt:

Get-ExecutionPolicy -list


Now able to run the

PS D:\Angular_Food_DeliverApp> ng new foodorder

command which will create the project


Now run the Poroject:

ng serve





Comments