coolans880
coolans880

Reputation: 190

How to downgrade Angular version in latest Jhipster?

Jhipster does not ask the Angular version while creating project, it automatically uses angular 9. How can I change it to Angular 8 as it is my project requirement.

Upvotes: 0

Views: 733

Answers (1)

vicpermir
vicpermir

Reputation: 3702

I don't know why you would want to do this, but if you must then the easiest way is to use an older version of JHipster. Angular 9 was introduced in version 6.8.0 so you could use the one before (6.7.1).

First remove the latest JHipster (6.8.0) from your machine

npm uninstall -g generator-jhipster

Then install the version you want, in this case 6.7.1

npm i -g [email protected]

And generate your project normally.

I think this is the easiest way since you could in theory use the latest version and downgrade angular manually but I doubt it would be easy (the generated code expects to be using Angular 9).

Upvotes: 2

Related Questions