0

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.**
1
  • 2
    share you angular.json file or folder structure if you have changed, and make sure you are running this command in right context Commented Feb 4, 2021 at 7:52

1 Answer 1

1

Seems you try to run ng build outside an angular project. Navigate to your project root and try again. From the docs:

Must be executed from within a workspace directory.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.