How to install a previous version in Angular

1

Good night, my question is very simple, but I did not find the answer, how do I install a version 4 of Angular, if the current one is in 6?

I've tried npm install -g @angular/cli@4 or npm install -g @angular/[email protected]

Do not accept, give error!

Thank you!

    
asked by anonymous 23.09.2018 / 02:28

1 answer

0

I think you just need to uninstall Angular globally and install version 4.

npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/[email protected]
    
23.09.2018 / 04:43