npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Steps to downgrade Angular 7 to Angular 6

Hi All,

I need procedure (Steps) for downgrade from Angular 7 version to Angular 6 version.

I have tried with below steps:
Step1: npm uninstall -g @angular/cli
Step2: npm cache clean --force
Step3: npm install -g @angular/cli@6.1.3 (*I want to downgrade to version 6.1.3)
But, still I can see angular 7 version in CLI, In Package.json etc.

Could you please help.

Thanks in advance,
Ganesh


These questions are focused on the CLI.

Where are your npm global installs going?

npm prefix --global

Where is your active version of ng installed?

command -v ng

After you uninstall angular, start a new shell and is the ng command missing?

ng --version
command -v ng