简体   繁体   中英

How do I deploy an Angular project on netlify?

I previously had this Angular project on digital ocean but want to move it to netlify. I deployed a React project without backend using npm build but not sure how to do it for angular with a back end.

I read I should use ng build but the error I get is "The build command requires to be run in an Angular project, but a project definition could not be found."

My github to this project is https://github.com/davyoon/vitalNote . Please help. I've been stuck on this for a while. I appreciate any help.

Make sure that you are running the command in the application root folder. if not move to root folder and run the build command.

And if you're already at root folder and still getting the same issue, try following command.

ng update @angular/cli --migrate-only --from=<Your current version>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM