更新JHipster生成器后如何更新JHipster项目? [英] How to update the JHipster project after updating JHipster generator?

查看:196
本文介绍了更新JHipster生成器后如何更新JHipster项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照页面<更新了我的JHipster安装/ a>通过运行命令

I updated my JHipster installation as per this page by running the command

npm update -g generator-jhipster

但是要更新我的应用程序,我不知道我应该在哪里运行下一个命令 yo jhipster

But to update my application I am not sure where should I run the next command yo jhipster.

我尝试从现有项目的根目录运行它,但它要求我输入新项目的名称。

I tried running it from the root of existing project, but it asked me to enter the name of the new project.

我尝试在现有项目的根目录之上运行它,然后它也问我新项目的名称。但是这次我输入了相同的名字并且jhipster生成过程运行了。但是,任何主要文件都没有变化,如package.json或Gruntfile.js或bower.json

I tried running it at one level above the root of existing project, then also it asked me the name of the new project. But this time I entered the same name and the jhipster generation process ran. However there was no change in any of the major files like package.json or Gruntfile.js or bower.json

更新JHipster项目的正确方法是什么,一次JHipster生成器更新了?

What is the correct way to update a JHipster project, once the JHipster generator is updated?

推荐答案

JHipster开发人员通过twitter回复说 yo jhipster 必须在项目根文件夹中执行。

JHipster developers replied over twitter saying that yo jhipster has to be executed at the project root folder.

这篇关于更新JHipster生成器后如何更新JHipster项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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