Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

node.js

Learning Node and trying to install generator-angular

running npm install -g generator-angular

WARN EPEERINVALID [email protected] requires a peer of generator-karma@>=0.9.0 but none was installed.

What does it means and how can I install it?

like image 634
user829174 Avatar asked Dec 29 '25 04:12

user829174


2 Answers

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.

like image 124
haihui Avatar answered Dec 30 '25 23:12

haihui


In my case the solution was install all in one line

npm install -g yo generator-karma generator-angular 
like image 29
Jorge Casariego Avatar answered Dec 31 '25 00:12

Jorge Casariego



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!