【发布时间】: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 以某种方式安装更高版本吗?