AliReza
AliReza

Reputation: 776

How to change the dependency manager of the installed JHipster generator and a JHipster project?

I installed JHipster generator using Yarn:

yarn global add generator-jhipster

Now I have two concerns:

1- What if I change my mind and want to generate new JHipster projects managed by "npm" when I use the yeoman command?

I mean:

yo jhipster

Should I install JHipster generator again, using "npm" this time?

I mean:

npm install -g generator-jhipster

2-How should I switch from "yarn" to "npm" on a project which is already using "yarn" as the dependency/package manager?

Upvotes: 0

Views: 546

Answers (1)

Gaël Marziou
Gaël Marziou

Reputation: 16294

  1. Uninstall from yarn first, then install using npm and no need to use yo jhipster, just use jhipster
  2. Edit .yo-rc.json file and change value of clientPackageManager property to "npm", delete node_modules and yarn.lock, re-generate with jhipster --with-entities

Upvotes: 5

Related Questions