Reputation: 27
I want to upload my Angular project on the server. However, "ng build" results in an error.
**The build command requires to be run in an Angular project, but a project definition could not be found.**
Upvotes: 0
Views: 491
Reputation: 4563
Seems you try to run ng build outside an angular project. Navigate to your project root and try again. From the docs:
ng build
Must be executed from within a workspace directory.
Upvotes: 1