I have recently installed Angular 6 and would like to go back to using Angular 5.2 How can I change my Angular version from whatever version I have to whichever one I choose?
I will try to give a general answer for future similar issues.
The version of angular used in a project is determined by the version of angular cli installed. Any specific version of angular cli can be installed with the following command:
npm install --global @angular/[email protected].
example:
npm install --global @angular/[email protected]
even if you have another version of angular cli (either newer or older) installed. That should not cause issues. However to be sure you can use:
npm uninstall -g angular-cli
npm cache clean
npm install -g [email protected]