local and global angular cli version mismatch code example
Example: Your global Angular CLI version is greater than your local version
# Install npm-check-updates
$ npm i -g npm-check-updates
# Run npm-check-updates with -u, will upgrade package.json
$ ncu -u
# Install updated packages
$ npm install