npm install -g generator-angular gives error (requires a peer of)

后端 未结 3 737
慢半拍i
慢半拍i 2021-01-14 11:49

Learning Node and trying to install generator-angular

running npm install -g generator-angular

WARN EPEERINVALID gen

相关标签:
3条回答
  • 2021-01-14 12:33

    In my case the solution was install all in one line

    npm install -g yo generator-karma generator-angular 
    
    0 讨论(0)
  • 2021-01-14 12:36

    You should try to install all the components in the same time.

    npm install -g grunt-cli bower yo generator-karma generator-angular
    

    worked for me.

    0 讨论(0)
  • 2021-01-14 12:46

    npm@3 no longer install peerDependencies automatically. This warning is shown as a result of this change.

    If you are not running the tests you do not have to install karma.
    If you are, npm install karma>=0.9.0 manually.

    https://docs.npmjs.com/files/package.json#peerdependencies

    0 讨论(0)
提交回复
热议问题