I'm new in Angular 4 and I am getting this error,
Your global Angular CLI version (6.0.1) is greater than your local version (1.4.1). The local Angular CLI version is used.
Can you please help me solving this ?
We will use the following command to uninstall Angular CLI like this: npm uninstall -g @angular/cli.
Use the command ng --version (or ng -v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to find out the globally installed version of Angular.
npm uninstall -g @angular/cli npm cache clean npm install -g @angular/[email protected]
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With