generator-angular-ui-router icon indicating copy to clipboard operation
generator-angular-ui-router copied to clipboard

ERR! peerinvalid The package generator-karma does not satisfy its siblings

Open whisher opened this issue 11 years ago • 9 comments

Hi, sorry to bother you but i've got problems to install your module. When I run:

npm install -g generator-angular-ui-router

I've got

npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer [email protected] wants generator-karma@>=0.6.0 npm ERR! peerinvalid Peer [email protected] wants generator-karma@~0.5.0 npm ERR! System Linux 3.5.0-17-generic npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "generator-angular-ui-router" npm ERR! cwd /home/whisher npm ERR! node -v v0.10.24 npm ERR! npm -v 1.3.21 npm ERR! code EPEERINVALID npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/whisher/npm-debug.log npm ERR! not ok code 0

BTW I've got problems to integrate ui-router with yeoman please if you have time take a look to

http://stackoverflow.com/questions/23466575/yeoman-grunt-error-injectormodulerr-failed-to-instantiate-module-ui-router

whisher avatar May 08 '14 09:05 whisher

Same issue:

npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants generator-karma@>=0.6.0
npm ERR! peerinvalid Peer [email protected] wants generator-karma@~0.5.0

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "generator-angular-ui-router"
npm ERR! cwd /Users/User/Project/5_20
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/User/npm-debug.log
npm ERR! not ok code 0```

coryarmbrecht avatar May 20 '14 14:05 coryarmbrecht

Imho as workaround you can check it out localy. (without -g option)

gintsgints avatar Jun 01 '14 06:06 gintsgints

Perhaps, temporarily we could use npm install -g git+ssh://[email protected]:iamblue/generator-angular-ui-router.git

9gix avatar Jun 01 '14 16:06 9gix

I solved this by uninstalling the original generator-angular and generator-karma.

npm uninstall -g generator-angular && npm uninstall -g generator-karma (or just combine I assume)

then reinstalling the generator

npm install -g generator-angular-ui-router

dependencies :-1:

adambarthelson avatar Jun 03 '14 17:06 adambarthelson

the issue is that this module wants generator-karma@~0.5.0 while the original module wants @>=8.2... maybe update this so it works with the newer karma generator?

update: looked further at this repo... last commit was in january so i'm not sure if it's being maintained and kept up-to-date with the original generator...

evliu avatar Aug 08 '14 05:08 evliu

Definitely hasn't, if I ever use this generator I have to do manual updates. Maybe I'll submit a PR...

adambarthelson avatar Aug 08 '14 15:08 adambarthelson

Submitted

https://github.com/iamblue/generator-angular-ui-router/pull/16

adambarthelson avatar Aug 08 '14 15:08 adambarthelson

Main question is if anything breaks, haha, that's why i didn't want to do a PR... I'd have to test all the scenarios :P

evliu avatar Aug 08 '14 17:08 evliu

Those are changes I always make after using this, I guess that counts.

adambarthelson avatar Aug 08 '14 23:08 adambarthelson