search

Home  >  Q&A  >  body text

angular.js - yo cannot install generator, how to solve it? ?

I am using the ubuntu system, node is version 5.0.0, and npm is version 3.5.1. After installing yo, the following error was reported when installing 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.

Then I installed the latest version of karma, but found that I still couldn’t install angular. I have reinstalled it several times. I also found many ways online but could not solve this problem. I kept getting this error. Can anyone help me with this? Yeah, beg on your knees! !

phpcn_u1582phpcn_u15822811 days ago603

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