EPEERINVALID with new version of generator-karma
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
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.
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!
I hope it comes soon ;)
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?
no because it needs generator-karma to be installed globally.
This issue is still unresolved. Any idea what this it will be resolved?
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).
this was fixed with the 0.8.0 release
use this command if you get this exception
sudo npm uninstall -g generator-karma && sudo npm install -g generator-angular
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
is there an actual soution to this other than removing karma
stop using sudo with npm
any solution ???