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

EPEERINVALID with new version of generator-karma

Open DaftMonk opened this issue 12 years ago • 13 comments

Hi, I just released the new version of my fullstack generator which depends on the latest version of generator-karma. The current build of generator-angular 0.7.1 is triggering a conflict in the peer dependencies, as its looking for ~0.6.0 of generator-karma, and not >=0.6.0.

I see that the package.json on the repo has been updated to use >=0.6.0, but it hasn't been released yet. I don't want to rush you into releasing something if its not ready, just wanted you to be aware there's a conflict with the two generators until its updated.

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-karm
a@>=0.6.0

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "update" "-g" "generator-angular"
npm ERR! cwd C:\Users\Tyler\JSworkspace
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!     C:\Users\Tyler\JSworkspace\npm-debug.log
npm ERR! not ok code 0

DaftMonk avatar Feb 27 '14 23:02 DaftMonk

Yeah its been awhile since the last release. We might do a release whats in there while the new stuff ive been working on can be RC'ed.

eddiemonge avatar Feb 28 '14 00:02 eddiemonge

Hi, I had the same issue. Do you have any idea when the next release will be available?! By the way, you guys are doing a great job!

Thanks at all!

antonioreuter avatar Mar 04 '14 23:03 antonioreuter

I hope it comes soon ;)

jrencz avatar Mar 23 '14 12:03 jrencz

Please excuse my ignorance, but what is the reason for requiring a peer dependency? Couldn't this lib just depend on generator-karma within the normal dependencies block?

jonjaques avatar Mar 25 '14 02:03 jonjaques

no because it needs generator-karma to be installed globally.

eddiemonge avatar Mar 25 '14 03:03 eddiemonge

This issue is still unresolved. Any idea what this it will be resolved?

OliverRC avatar Mar 27 '14 21:03 OliverRC

Same error, same question here: has this been resolved in some way? In other news, the workaround shown in https://github.com/DaftMonk/generator-angular-fullstack/issues/105 worked for my needs (generator-angular-fullstack needed only).

alexanderlperez avatar Apr 18 '14 22:04 alexanderlperez

this was fixed with the 0.8.0 release

eddiemonge avatar May 07 '14 17:05 eddiemonge

use this command if you get this exception

sudo npm uninstall -g generator-karma && sudo npm install -g generator-angular

AnirbanKundu avatar Jun 23 '14 22:06 AnirbanKundu

I had to use "npm rm" instead of uninstall, but even then, can't get past the EPEERINVALID error:

C:\....... [master]> npm rm -g generator-karma ; npm install -g generator-angular
unbuild [email protected]
npm WARN peerDependencies The peer dependency generator-karma@>=0.9.0 included from generator-angular will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency yo@>=1.0.0 included from generator-angular will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency yo@>=1.0.0 included from generator-karma will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "generator-angular"
npm ERR! node v0.10.36
npm ERR! npm  v2.6.1
npm ERR! code EPEERINVALID

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

npm ERR! Please include the following file with any support request:
npm ERR!     C:\......\npm-debug.log

Inspired from https://github.com/yeoman/generator-angular/issues/220#issuecomment-22891081 (eddiemonge), I also tried:

npm rm -g yo generator-* yeoman-generator bower grunt; npm install -g generator-socketio

and still I get:

npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!

Exact same issue for generator-angular so it seems there's something consistently going on with packages requiring karma. https://github.com/yeoman/generator-angular/issues/220#issuecomment-77406369

rainabba avatar Mar 05 '15 16:03 rainabba

is there an actual soution to this other than removing karma

daveball avatar Oct 11 '15 12:10 daveball

stop using sudo with npm

eddiemonge avatar Oct 12 '15 18:10 eddiemonge

any solution ???

wahengchang avatar Nov 10 '15 07:11 wahengchang