简体   繁体   English

npm generator-ionic Install需要yo @> = 1.0.0

[英]npm generator-ionic Install Requires yo@>=1.0.0

I'm trying to install generator-ionic, and I get the following fatal error: 我正在尝试安装generator-ionic,我得到以下致命错误:

EPEERINVALID generator-ionic@0.7.3 requires a peer of yo@>=1.0.0 but none was installed

I'm using node 0.12.17, npm 3.3.6, and yo 1.4.7, so I do not understand what isn't satisfied. 我正在使用节点0.12.17,npm 3.3.6和yo 1.4.7,所以我不明白什么不满意。

@chrysanhy I think I found the issue. @chrysanhy我想我发现了这个问题。 I just downgraded my npm version to 2.7.4 and when I ran the command npm install generator-ionic-g the following message appeared: 我刚刚将我的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+. npm WARN peerDependencies不再自动安装generator-ionic中包含的对等依赖关系yo @> = 1.0.0以满足npm 3+中的peerDependency。 Your application will need to depend on it explicitly. 您的应用程序需要明确依赖它。

Now the ionic-generator is working fine on my machine. 现在离子发生器在我的机器上工作正常。 Hope this helps you and everyone who is facing the same problem. 希望这可以帮助您和面临同样问题的每个人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM