Jhipster哟Jhipster没有更新现有项目 [英] Jhipster yo jhipster is not updating existing project

查看:52
本文介绍了Jhipster哟Jhipster没有更新现有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Jhipster v4.0.5创建了一个项目.现在已将 generator-jhipster 升级到最新版本,即v4.0.7,并尝试手动升级我现有的项目.但是升级没有发生,因为在使用命令 yo jhipster yo jhipster --with-entities 之后,没有单个文件被更改. 通过'.yo-rc.json'确认了这一点,它仍然显示 {"jhipsterVersion":"4.0.5"} .

I have created a project using Jhipster v4.0.5. Now have upgraded generator-jhipster to latest one i.e. v4.0.7 and tried to upgrade my existing project manually. But upgrade is not happening because no single file is changed after using command yo jhipster or yo jhipster --with-entities. Have confirmed this through '.yo-rc.json', it is still showing {"jhipsterVersion": "4.0.5"}.

有人知道此问题的解决方法吗?

Does anyone know fix for this issue ?

推荐答案

您可能正在项目的node_modules文件夹中使用generator-jhipster,将其删除并重新运行npm installyarn install.

You're probably using the generator-jhipster in your project's node_modules folder, delete it and re-run npm install or yarn install.

为什么不使用yo jhipster:upgrade而不是重新生成所有内容并丢失所有自定义内容?请参阅文档

Why don't you use yo jhipster:upgrade rather than re-generating everything and losing all your customizations? See documentation

这篇关于Jhipster哟Jhipster没有更新现有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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