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

To Fix Error “This command is not available when running the Angular CLI outside a workspace Error”, Do Right-Click on yours project name in VS Code and Click “Open in Integrated Terminal” Option.

It would open the project to your terminal and error would be fixed. Now you would be able to run the command “ng serve –open” or “ng serve” into your terminal without any issue.
Hope it helps 🙂

Leave a Comment