Search code examples
angularangular-cliserve

Why am I not able to run ng serve inside workspace?


So basically if I type the command "ng serve" inside the terminal and inside the right workspace. (I also tried "sudo ng serve") I get the following error for some reason : Error: This command is not available when running the Angular CLI outside a workspace.

Can someone help me please?!


Solution

  • Find the angular.json file in your project. Run ng serve in that folder.