Not able to create a new JHipster application using just the prompts
Should be able to create JHipster application using just the prompts
npm install -g generator-jhipstermkdir temp && cd tempjhipsterhttps://github.com/jhipster/jhipster-kotlin/issues/149
6.0.1
6.1.0
INFO! Using JHipster version installed globally
INFO! Executing jhipster:info
INFO! Options: from-cli: true
Welcome to the JHipster Information Sub-Generator
/home/pav/Development/temp/jhipster-java/temp
└── (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_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
git version 2.17.1
node: v10.15.2
npm: 6.9.0
yeoman: 2.0.5
yarn: 1.16.0
Docker version 18.09.6, build 481bc77
docker-compose version 1.23.2, build 1110ad01
Ubuntu 18.04.2 LTS
With @PierreBesson, we confirm the issue.
I managed to reproduce the issue, using https://github.com/jhipster/jhipster-guides
I'm putting a bounty on this, as it is an important bug !
We need to do a release after finding the fix. It probably comes from a transitive dependencies, as usual
cc @jdubois @deepu105 @jhipster/developers -> I'm afraid without a fix, we won't be able to do demo
We really need to find a fix and release
What a mess NPM is!
Yes let's do a release after that
I think the solution might involve publishing a new version with a shrinkwrap.json file to fix the correct version of the transitive dependency. But first we need to find the dependency that is causing the app to hang.
I use yarn and don't see this issue. Is this specific to npm ?
I'm pretty sure it comes from a transitive dependencies.
I switched to v6.1.0 tag
npm ci : no problem, it works finepackage-lock.json and node_modules, then npm install -> the package-lock.json has changed and it's brokenI have found the problematic dependency: https://github.com/SBoudrias/Inquirer.js/issues/811
Awesome work @PierreBesson ! The good news is that @SBoudrias is a friend and an excellent coder, so this time to bug should be solved easily!!
Congrats @PierreBesson!!! Would really be interested to know what's your process for finding these node/npm issues
@amatosg no unfortunately it's a transitive dependency
My process was to look at the diff between a newly generated package-lock.json and the one from the 6.1.0 release. Then I searched among the transitively updated packages which one had a recent npm release (manually). Then I expected that people must have already opened an issue on the GitHub project.
@PierreBesson That makes sense. Thanks a lot!!!
@jdubois I think that we should give the bounty money to the Yeoman open collective: https://opencollective.com/yeoman
But there doesn't seem to be a way to transfer fund between different collectives. This would be cool to sponsor upstream dependencies.
c'mon @PierreBesson you found the culprit! If @SBoudrias is interested (and fixes the issue!!) we could do it a $200 bounty and you share it. WDYT @SBoudrias ?
So we'll have a temporary fix from @PierreBesson with the above PR, and that's awesome.
Most helpful comment
My process was to look at the diff between a newly generated package-lock.json and the one from the 6.1.0 release. Then I searched among the transitively updated packages which one had a recent npm release (manually). Then I expected that people must have already opened an issue on the GitHub project.