Reputation: 776
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
Reputation: 16294
yo jhipster
, just use jhipster
.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