Reputation: 1431
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
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
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