The serve command requires to be run in an Angular project, but a project definition could not be found.
ng serve
とコマンドを打つと、「The serve command requires to be run in an Angular project, but a project definition could not be found.」とエラーが出たのでなんでだろう、と思っていると、package.jsonと同じディレクトリでコマンドを打っていなかったから出ていたようです。