英文:
How to solve JHipster automatically installing a beta instead of stable version?
问题
我运行了命令 npm install -g generator-jhipster
,就像 JHipster 网站在主页的章节 "JHipster Quick Start" 中所述。
NPM 安装了版本 v8.0.0-beta.1
。如何摆脱 beta 版本并安装最新的 稳定 版本?
英文:
I ran the command npm install -g generator-jhipster
as JHipster's website states on the Homepage at chapter "JHipster Quick Start".
NPM installed version v8.0.0-beta.1
. How to get rid of a beta and install the latest stable version?
答案1
得分: 1
感谢用户jonsharpe,我能够安装“稳定”版本。开发者可能不太关心并发布最新版本,尽管这对我来说似乎不太常见。但是卸载它很简单。如果安装了全局版本,必须使用标志-g
来移除它。 来源: 如何使用npm卸载全局包
这些步骤解决了我的问题:
-
npm uninstall -g generator-jhipster
-
在npm - generator-jhipster上选择一个版本标签
-
npm install -g generator-jhipster@7.9.3
就这样了。
英文:
Thanks to user jonsharpe I could install the "stable" version. The developers would not care and ship a bleeding edge version, though this seems uncommon to me. But it is simple to remove it. If one installs a global version, it it required to remove it using the flag -g
. Source: How to Remove a Global Package with npm Uninstall
These steps solved my question:
-
npm uninstall -g generator-jhipster
-
Select a version tag at npm - generator-jhipster
-
npm install -g generator-jhipster@7.9.3
That's it folks.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论