'how to run angular server?

Here is my code in package.json

"scripts": {
    "ng": "ng",
    "start": "ng serve --port 8080",
    "build": "ng build --prod --aot",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
}

I am trying to run npm run start it is compiled successfully but the port is not running. to build FE I am using npm run build it is working fine. so please guide me on how to run angular server



Solution 1:[1]

run this command:

ng serve --open

Solution 2:[2]

Run this command in the terminal :

ng serve

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fateh Mohamed
Solution 2 Neili