Dominik
Dominik

Reputation: 1431

Previously installed jhipster 3.12 found after yarn installed 4.0.6

After installing yarn (0.20.3) for the very first time, yo (1.8.5), generator-jhipster with yarn global add [email protected] and extend the $PATH as mentioned by the installation guide, the new version of jhipster istn't used. Instead, the jhipster 3.12.1 is found, which was always installed by node/npm.

yo is taken from $HOME/.config/yarn/global/node_modules/.bin
jhipster 4.0.6 is installed in $HOME/.config/yarn/global/node_modules/generator-jhipster

What should I do, that yo takes the latest jhipster installation?

Upvotes: 0

Views: 2705

Answers (3)

Roman N
Roman N

Reputation: 5110

I decided to refuse using yarn and all problems disappeared :)

Upvotes: 0

David Roberts
David Roberts

Reputation: 744

If you were previously using NPM before Yarn, this question/answer would probably be relevant and helpful -- goes through the process of removing all of NPM's managed packages and not just for yo and generator-jhipster:

Yarn package won't upgrade globally (after migrating from NPM)

Upvotes: 0

Echelon
Echelon

Reputation: 41

I had the same issue when switching from npm to yarn. Somehow "yo" still uses npm. This solved the problem for me:

npm uninstall -g generator-jhipster
npm uninstall -g yo

Upvotes: 3

Related Questions