You seem to not be depending on "@angular/core". This is an error
While running ng serve
you should be in the app's/project's directory.
If you run the command in another directory you get the error:
You seem to not be depending on "@angular/core". This is an error.
Delete your node modules , Check your package.json
file should have the @angular/core
and reinstall it with npm i
.