I have tried to downgrade angular 7 to angular 6 by running the following npm
commands:
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@6.1.1
However angular/cli
7 version is still displaying in my package.json
file. I need help to downgrade angular7
to angular6
.
You need to set the version numbers in your
package.json
for (at least) this packagesas well as in dev-dependencies
Also make sure to downgrade every library that needs to be downgraded depending on angular's version. Check error messages after step 1...
Once you changed that, run
from the project's root folder to remove all packages
Then run
And you should be good to go
I think you forgot the
@
before@angular/cli
Try these lines to make the change globally.Use the same, going to your project folder, and without the
-g
to make the change locally.Another way is to manually edit
package.json
file, removenode_modules
folder and re runnpm install
in your project folder.