jhipster应用程序文件在错误的目录中生成 [英] jhipster application files generated in wrong directory

查看:73
本文介绍了jhipster应用程序文件在错误的目录中生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用yo jhipster在ubuntu 13.10中创建jhipster应用程序时,生成的输出文件总是转储到错误的目录中.

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.

例如,我在目录/mnt/mercury/jhipster-test/alpha中运行yo jhipster,然后将文件转储到/mnt/mercury.实际上,如果我在/mnt/mercury的任何子目录中运行yo jhipster,它们总是会转储到/mnt/mercury中.

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.

我正在使用标准ubuntu存储库中的yo version 1.1.2

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.

为了其他任何面临此问题的人的利益. 我设法让Yeoman与以下人员合作

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

推荐答案

如注释中所述,这是Ubuntu 13.10上的Yeoman问题:

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

  • 我们在Ubuntu 12.04上没有这个问题
  • 在Ubuntu 13.10上,其他生成器("yo webapp")也存在相同的问题

作为一种解决方法,我建议您看一下我们的Docker容器:

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

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

这将允许您在容器内使用Ubuntu 12.04运行完整的JHipster堆栈!只需使用它来生成应用程序,即可直接在主机上工作.

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.

这篇关于jhipster应用程序文件在错误的目录中生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆