npm generator-ionic 安装需要 yo@>=1.0.0
npm generator-ionic Install Requires yo@>=1.0.0
我正在尝试安装 generator-ionic,但出现以下致命错误:
EPEERINVALID generator-ionic@0.7.3 requires a peer of yo@>=1.0.0 but none was installed
我用的是node 0.12.17,npm 3.3.6,yo 1.4.7,所以不明白有什么不满意的。
@chrysanhy 我想我找到了问题所在。我刚刚将我的 npm 版本降级到 2.7.4,当我 运行 命令 npm install generator-ionic-g
时出现以下消息:
npm WARN peerDependencies The peer dependency yo@>=1.0.0 included from generator-ionic will no longer be automatically installed to fulfill the peerDependency in npm 3+. Your application will need to depend on it explicitly.
现在离子发生器在我的机器上运行良好。希望这对你和所有面临同样问题的人有所帮助。
我正在尝试安装 generator-ionic,但出现以下致命错误:
EPEERINVALID generator-ionic@0.7.3 requires a peer of yo@>=1.0.0 but none was installed
我用的是node 0.12.17,npm 3.3.6,yo 1.4.7,所以不明白有什么不满意的。
@chrysanhy 我想我找到了问题所在。我刚刚将我的 npm 版本降级到 2.7.4,当我 运行 命令 npm install generator-ionic-g
时出现以下消息:
npm WARN peerDependencies The peer dependency yo@>=1.0.0 included from generator-ionic will no longer be automatically installed to fulfill the peerDependency in npm 3+. Your application will need to depend on it explicitly.
现在离子发生器在我的机器上运行良好。希望这对你和所有面临同样问题的人有所帮助。