I need to install Angular CLI in the version 1.6.8. When I am executing this command:
npm install -g @angular/cli@1.6.8
it is getting installed well. But when I am check the version using ng -v
, it displays the latest version, in my case 1.7.4
.
For my code compatibility, I need version 1.6.8
. And even in my dependencies in package.json
, I have specified the cli as version 1.6.8
:
"@angular/cli": "^1.6.8"
Does anybody know the issue? How can I install version 1.6.8?