i got this error because of im running the app from outside of the folder so I did a cd app-name then applied npm install after that ng serve -o