如何解决 JHipster 自动安装 beta 版本而非稳定版本?

huangapple go评论53阅读模式
英文:

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卸载全局包

这些步骤解决了我的问题:

  1. npm uninstall -g generator-jhipster

  2. npm - generator-jhipster上选择一个版本标签

  3. 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:

  1. npm uninstall -g generator-jhipster

  2. Select a version tag at npm - generator-jhipster

  3. npm install -g generator-jhipster@7.9.3

That's it folks.

huangapple
  • 本文由 发表于 2023年6月19日 14:50:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76504240.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定