How to downgrade Angular CLI version?
Solution 1:
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/[email protected]
Solution 2:
Quick fix :
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/[email protected]
Explanation :
If you want remove this warning, then you can downgrade your global angular-cli
installation to eg. 1.4.1
by running above commands on terminal:
Complete Upgrade and Downgrade guide is on GitHub README.
Your project always uses CLI version on which you have created the project. You can see it in the warning while running ng serve
.
If global version is greater than Local version then local version is used.
It is also defined in your package.json
file.
"devDependencies": {
"@angular/cli": "1.5.0",
....
}
Reference Link