【问题标题】:npm install jhipster package yo does not satisfynpm install jhipster package 哟不满足
【发布时间】:2015-02-11 10:38:08
【问题描述】:

我正在尝试安装 jhipster。我按照https://jhipster.github.io/installation.html 上的步骤操作,但最后一步(npm install -g generator-jhipster)返回给我:

npm ERR! peerinvalid The package yo does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-jhipster@2.1.1 wants yo@>=1.3.0

我有 centOS 7 并且 npm 是从存储库安装的

npm -v
1.3.6

我已经尝试过更新哟,但对于这个 npm 来说似乎是最新的。

npm update -g yo

更新:

已通过添加新存储库修复:

curl -sL https://rpm.nodesource.com/setup | bash -

我可以安装更高版本的哟

【问题讨论】:

  • 您可以尝试 'yo --version' 来获取您的 Yeoman 版本 -> 我们不测试旧版本,这就是我们要求您至少拥有 1.3.0 的原因
  • yo --version 打印出我正在使用 1.1.2 版本,但我怎样才能获得更高版本?我可以强制 npm 以某种方式安装更高版本吗?

标签: npm jhipster centos7 yo


【解决方案1】:

已通过添加新存储库修复:

卷曲-sL https://rpm.nodesource.com/setup |重击 - 我可以安装更高版本的哟

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-03-24
    • 2016-10-02
    • 1970-01-01
    • 2018-07-28
    • 1970-01-01
    • 2016-05-29
    • 1970-01-01
    • 2014-10-08
    相关资源
    最近更新 更多