Home  >  Q&A  >  body text

angular.js - yo 不能安装generator,怎么解决??

我用的是ubuntu系统,node是5.0.0版本的,npm是3.5.1版本的。安装完yo 后,安装angular-generator报这样的错:

 UNMET PEER DEPENDENCY generator-karma@>=0.9.0

 npm WARN generator-angular@0.15.1 requires a peer of generator-karma@>=0.9.0 but none was installed.

然后我安装了karma的最新版本,发现还是不能安装angular,已经重装好几次里,网上也是找了好多办法也没能解决这个问题,一直提示这个错误,哪位大神懂得帮忙看一下呀,跪求!!

phpcn_u1582phpcn_u15822731 days ago562

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-05-15 16:59:44

    Just ignore the warning. .

    reply
    0
  • 怪我咯

    怪我咯2017-05-15 16:59:44

    This is a problem because npm3’s dependency installation method is different from npm2. I’m surprised that generator-angular didn’t fix it by itself?
    Two methods

    1. Register an issue to generator-angular on github and let her upgrade it

    2. Switch back to the old version of node or npm

    reply
    0
  • Cancelreply