我正在尝试安装 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 -
我能够安装更高版本的哟