iamblue / generator-angular-ui-router

I add "ui-router" in this module. Fork from https://github.com/yeoman/generator-angular
71 stars 28 forks source link

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

Open whisher opened 10 years ago

whisher commented 10 years ago

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 generator-angular@0.8.0 wants generator-karma@>=0.6.0 npm ERR! peerinvalid Peer generator-angular-ui-router@0.5.3 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

coryarmbrecht commented 10 years ago

Same issue:

npm WARN package.json wepay@0.0.3 No repository field.
npm WARN package.json jshint@0.7.3 No repository field.
npm WARN package.json less@1.3.0 No repository field.
npm WARN package.json recess@1.1.4 No repository field.
npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angular@0.8.0 wants generator-karma@>=0.6.0
npm ERR! peerinvalid Peer generator-angular-ui-router@0.5.3 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```
gintsgints commented 10 years ago

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

9gix commented 10 years ago

Perhaps, temporarily we could use npm install -g git+ssh://git@github.com:iamblue/generator-angular-ui-router.git

adambarthelson commented 10 years ago

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:

evliu commented 10 years ago

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...

adambarthelson commented 10 years ago

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

adambarthelson commented 10 years ago

Submitted

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

evliu commented 10 years ago

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

adambarthelson commented 10 years ago

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