When you run angular-cli
you have to run the same version globally as locally. I have had many problems with this. I do not know if this is how it is intended to run but I do know it causes problems for sure!
When installing globally you make sure you update local as well.
So what I do is,
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@latest
Then I remove the npm_moduels
folder. Then I run,
npm install angular-cli@latest --save
Now the local version and global version match.
Based on this method I would remove it from the package.json and once you run the final command to install it locally with --save it will add it back with the correct version.
WARNING!
When you update angular-cli
it very well could break your app. If this happens check your other dependencies and make sure they work with the new version of angular-cli
you are now running.
Update Angular-cli