Search code examples
yeomanjhipster

jhipster application files generated in wrong directory


When I try to create a jhipster application in ubuntu 13.10 with yo jhipster the generated output files are always dumped in the wrong directory.

For example I run yo jhipster in the directory /mnt/mercury/jhipster-test/alpha then the files are dumped out to /mnt/mercury. In fact if I run yo jhipster in any subdirectory of /mnt/mercury they are always dumped out to /mnt/mercury.

I'm using yo version 1.1.2 from the standard ubuntu repository

Please advise how to generate files to be output in current directory.

For the benefit of anyone else facing this problem. I managed to get Yeoman working with the following

npm cache clean

sudo npm rm -g yo

npm cache clean

sudo npm install -g yo

Solution

  • As discussed in the comments, this is a Yeoman problem on Ubuntu 13.10:

    • We don't have this issue with Ubuntu 12.04
    • There is the same issue with other generators ("yo webapp") on Ubuntu 13.10

    As a workaround, I recommend you have a look at our Docker container:

    https://github.com/jhipster/jhipster-docker

    This will allow you to run the full JHipster stack, with Ubuntu 12.04, inside a container! Just use it to generate the app, then you can work directly on your host machine.