In your package.json file, change the @angular/cli version in devDependencies to:
"@angular/cli": "7.1.0"
There is a version mismatch between your project and the devDependency. You might have probably used npm audit fix --force or a similar auto update command, which might have updated the devDependencies in “package.json” file.
You can also use angular cli version 7.3.5 in devDependencies here. Just make sure that the development version and the version mentioned in devDependencies are compatible. Be aware that local anglular/cli version doesn’t really matter here.
Update: After making the change, delete “package-lock.json” and delete the “node modules” folder. Run npm install to install the modules again.