I am facing the same issue since 2 days.
ng -v :6.0.8
node -v :8.11.2
npm -v :6.1.0
Make sure you are in the folder where angular.json
is installed. Get into that and type ng serve
. If the issue still arises, then you are having only dependencies installed in node_modules
. Type the following, and it will work:
npm i --only=dev