I need to duplicate a jhipster project. Since I have created this project I have updated jhipster versions. I want to duplicate the project with the same jhipster version of the first project.
How do I know which version of Jhipster I am using on my first application?
When you run yo jhipster this is written in yellow in the welcome message. This prints out the version installed on the system, not the version used to generate the project, though.
The best place to find this information seems to be the first line of ./Gruntfile.js:
// Generated on 2015-12-14 using generator-jhipster 2.25.0
The identifier of the version used to generate the project can be found in a number of other places as well:
➜ grep -R '2\.25\.0' . # current version of jhipster is 2.25.0
./Gruntfile.js:// Generated on 2015-12-14 using generator-jhipster 2.25.0
./node_modules/connect/History.md:2.25.0 / 2014-08-05
./node_modules/generator-jhipster/package.json: "[email protected]",
./node_modules/generator-jhipster/package.json: "_from": "[email protected]",
./node_modules/generator-jhipster/package.json: "_id": "[email protected]",
./node_modules/generator-jhipster/package.json: "raw": "[email protected]",
./node_modules/generator-jhipster/package.json: "rawSpec": "2.25.0",
./node_modules/generator-jhipster/package.json: "spec": "2.25.0",
./node_modules/generator-jhipster/package.json: "_resolved": "https://registry.npmjs.org/generator-jhipster/-/generator-jhipster-2.25.0.tgz",
./node_modules/generator-jhipster/package.json: "_spec": "[email protected]",
./node_modules/generator-jhipster/package.json: "tarball": "http://registry.npmjs.org/generator-jhipster/-/generator-jhipster-2.25.0.tgz"
./node_modules/generator-jhipster/package.json: "version": "2.25.0"
./node_modules/phantomjs/node_modules/request/CHANGELOG.md:### v2.25.0 (2013/07/23 21:51 +00:00)
./node_modules/phantomjs/node_modules/request/CHANGELOG.md:- [828f12a](https://github.com/mikeal/request/commit/828f12a1ae0f187deee4d531b2eaf7531169aaf2) 2.25.0 (@mikeal)
./package.json: "generator-jhipster": "2.25.0",
Ask it jhipster directly, from within your project folder.
jhipster --version
Here's my output
salathiel@salathiel-genese-pc:~/path/to/project$ jhipster --version
Using JHipster version installed locally in current project's node_modules
4.14.3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With