In order to upgrade angular-cli package that was installed globally in your system, you need to run following commands
1 2 3 |
npm uninstall -g angular-cli npm cache clean or npm cache verify (if npm > 5) npm install -g @angular/cli@latest |
Instead of upgrading global version of angular-cli you can also upgrade the local version for specific project y running following commands:
1 2 3 4 |
rm -rf node_modules npm uninstall --save-dev angular-cli npm install --save-dev @angular/cli@latest npm install |