0

After installing yarn (0.20.3) for the very first time, yo (1.8.5), generator-jhipster with yarn global add generator-jhipster@4.0.6 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?

TylerH
  • 20,816
  • 57
  • 73
  • 92
Dominik
  • 1,232
  • 1
  • 14
  • 26

3 Answers3

3

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
Echelon
  • 41
  • 2
0

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)

Community
  • 1
  • 1
David Roberts
  • 734
  • 7
  • 13
0

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

mystdeim
  • 4,312
  • 8
  • 46
  • 75