Recently (May 2018) newer stable version of angular has been released. I have migrated succesfully from version 5 to 6.
But for some reason I wanted to rollback to version 5. I have tried following commands:
npm uninstall -g @angular/cli
it uninstalled the latest version of angular-6.
npm cache clean --force
and then installed
npm install -g @angular/[email protected]
node version: 8.10.0
npm version: 6.0.0
npm install -g npm@latest
– Fairleadnpm
version please, you have mentioned your node version. what doesnpm -v
shows? – Subjoindernpm
is v6.0.1 how could you it be 8.10.0 it's your node version younpm
version must be 5.6.0 – Subjoinder