When using the command yarn global upgrade generator-jhipster it is not possible to upgrade the generator. After using it, if I use the command jhipster --version and I see always the old version 5.0.1
You closed this one: https://github.com/jhipster/generator-jhipster/issues/7232 which is almost the same, but with no solution. What can I do? Thanks
Trying to run command yarn global upgrade generator-jhipster
D:\BasuraTemporal\Borrar\BOOTSRAP\JHispter\Packtpub\upgrade>yarn global upgrade generator-jhipster
yarn global v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Rebuilding all packages...
success Saved lockfile.
success Saved 243 new dependencies.
info Direct dependencies
โโ [email protected]
info All dependencies
โโ @mrmlnc/[email protected]
โโ @nodelib/fs.[email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ fs.[email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ lodash.[email protected]
โโ lodash.[email protected]
โโ lodash.[email protected]
โโ lodash.[email protected]
โโ lodash.[email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
Done in 12.28s.
Currently I've the version 5.0.1 and it upgraded without problems from other versions below 5.0.1
D:\BasuraTemporal\Borrar\BOOTSRAP\JHispter\Packtpub\upgrade>jhipster info
Using JHipster version installed globally
Executing jhipster:info
Options:
Welcome to the JHipster Information Sub-Generator
D:\BasuraTemporal\Borrar\BOOTSRAP\JHispter
`-- (empty)
cat: no such file or directory: .yo-rc.json
##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**
entityName.json files generated in the .jhipster directory
JDL entity definitions
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
git version 2.16.2.windows.1
node: v8.11.1
npm: 5.6.0
yeoman: 2.0.5
yarn: 1.7.0
Docker version 18.03.0-ce, build 0520e24302
docker-compose version 1.20.1, build 5d8c71b2
Congratulations, JHipster execution is complete!
D:\BasuraTemporal\Borrar\BOOTSRAP\JHispter\Packtpub\upgrade>
entityName.json files generated in the .jhipster directoryWindows 10 Home
And how did you install JHipster? This could be an issue with Yarn but I doubt it - are you able to upgrade other packages?
Usually the fix to this issue is to uninstall from npm and yarn then reinstall with one or the other:
# Remove from both yarn and npm
yarn global remove generator-jhipster
npm uninstall -g generator-jhipster
# Install with just yarn
yarn global add generator-jhipster
I'm really getting tired of all these npm/yarn compatibility issues. Yarn
is slowly diverging as well, may be it will be much easier for us and our
users if we just switch back to NPM and ditch Yarn altogether or atleast
make NPM default and yarn optional. The latest version of NPM is as fast as
Yarn if not faster and they are copying all Yarn features anyway
On Thu, 23 Aug 2018, 11:24 pm Jon Ruddell, notifications@github.com wrote:
Usually the fix to this issue is to uninstall from npm and yarn then
reinstall with one or the other:Remove from both yarn and npm
yarn global remove generator-jhipster
npm uninstall -g generator-jhipsterInstall with just yarn
yarn global add generator-jhipster
โ
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/8154#issuecomment-415575745,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDlFzcYhqLGmXiueGMeGTfaW16NbY_Mks5uTx1_gaJpZM4WKCf0
.
Yes for me it's pretty clear now that we should remove Yarn.
Lets make NPM the default option first and see how it goes so that existing
apps who upgrade don't have any issues. In the next major version we can
drop Yarn. Wdyt?
On Fri, 24 Aug 2018, 9:15 am Julien Dubois, notifications@github.com
wrote:
Yes for me it's pretty clear now that we should remove Yarn.
โ
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/8154#issuecomment-415673569,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDlFxRGKTBmPRG-4YIiJtFGMI6RVM6uks5uT6gagaJpZM4WKCf0
.
Yes @deepu105 that could be a huge migration for some people, so we can't migrate like that. Changing the default, however, isn't a big deal, and nobody should complain. We'll drop Yarn in JHipster 6.0, probably, but not before.
I'm closing this because it's an installation problem, either with NPM or Yarn (or maybe Chocolatey/Homebrew/etc - we provide so many options!). So you need to check your package manager, and how you installed the module.
I worked like Jon said,
Usually the fix to this issue is to uninstall from npm and yarn then reinstall with one or the other:
yarn global remove generator-jhipster
npm uninstall -g generator-jhipster
yarn global add generator-jhipster
Thanks Jon
Hi
it worked for me as Jon an Tonterias said.
but When I was on npm 5.6 updgrade wasn't working. but when I upgrate to the npm 6.4 I'am able now to upgrate Jhispter ton 5.2.1 version. I hope this information can help.
Most helpful comment
Yes for me it's pretty clear now that we should remove Yarn.