angularvisual-studio-code

Error: This command is not available when running the Angular CLI outside a workspace


I'm fairly new to Angular. But when I try to start my project with

ng serve --open

I got the following error:

error

My project structure is like this:

structure

What can be the problem?


Solution

  • Navigate to root folder in terminal and then run angular cli command. Below command will put you in root directory from current location:

    cd angular_t-project