angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.12k stars 1.24k forks source link

dependency broken #40

Closed SylTi closed 10 years ago

SylTi commented 10 years ago

On a fresh install of node : npm install -g yo npm install -g generator-angular-fullstack

yo angular-fullstack --jade with no to compass and yes for all the others; results in :

"npm ERR! peerinvalid The package karma does not satisfy its siblings' peerDepend encies requirements! npm ERR! peerinvalid Peer karma-ng-html2js-preprocessor@0.1.0 wants karma@>=0.9 npm ERR! peerinvalid Peer karma-ng-scenario@0.1.0 wants karma@>=0.9 npm ERR! peerinvalid Peer grunt-karma@0.6.2 wants karma@~0.10.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" "install" npm ERR! cwd c:\www\projs\generator-test\last-test-fullstack 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:\www\projs\generator-test\last-test-fullstack\npm-debug.log npm ERR! not ok code 0"

fotomut commented 10 years ago

+1 same here

DaftMonk commented 10 years ago

I'm getting this as well. It appears to be an issue with the way generator-karma is installing its dependencies. I also tested generator-angular and they have the same bug.

A workaround you can use for now is to add the following dependencies to your package.json after it failed installing.

"karma-ng-scenario": "~0.1.0",
"grunt-karma": "~0.6.2",
"karma-script-launcher": "~0.1.0",
"karma-chrome-launcher": "~0.1.2",
"karma-firefox-launcher": "~0.1.2",
"karma-html2js-preprocessor": "~0.1.0",
"karma-jasmine": "~0.1.5",
"requirejs": "~2.1.9",
"karma-requirejs": "~0.2.1",
"karma-coffee-preprocessor": "~0.1.1",
"karma-phantomjs-launcher": "~0.1.1",
"karma": "~0.10.8",
"karma-ng-html2js-preprocessor": "~0.1.0"

Then run npm install again.

GordyD commented 10 years ago

I experience this issue too.

yo angular-fullstack (with default settings)

Error output: npm ERR! peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer karma-ng-html2js-preprocessor@0.1.0 wants karma@>=0.9 npm ERR! peerinvalid Peer karma-ng-scenario@0.1.0 wants karma@>=0.9 npm ERR! peerinvalid Peer grunt-karma@0.6.2 wants karma@~0.10.0

npm ERR! System Linux 3.2.0-23-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev" npm ERR! cwd /vagrant_data/workshapes npm ERR! node -v v0.10.6 npm ERR! npm -v 1.2.18 npm ERR! code EPEERINVALID npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /vagrant_data/workshapes/npm-debug.log npm ERR! not ok code 0

@DaftMonk thank you for the temp workaround

faisalferoz commented 10 years ago

Having same issues. Gets resolved if add the mentioned dependencies in the "dependencies" section of package.json file. @DaftMonk thanks for the workaround.

SylTi commented 10 years ago

@DaftMonk added what you said to the dev depedencies and it works fine now, thanks for your great work !

DaftMonk commented 10 years ago

So strange, but all of a sudden its working for me again without having changed anything. People on the generator-angular thread have had the same experience, so it looks like this bug has fixed itself for whatever reason.

I'm gonna close this for now, but I'll reopen it if people experience the issue again.

deliergky commented 10 years ago

Still got an error but changing the dependency in generator-angular in package.json resolved it for me grunt-karma": ">=0.6.2"

BehnamF commented 10 years ago

hi I am trying to install cordova, and it gives me the same error: ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer generator-angular@0.7.1 wants generator-karma@~0.6.0

npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "cordova" npm ERR! cwd C:\Users\Behnam Farrokhi 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! C:\Users\Behnam Farrokhi\npm-debug.log npm ERR! not ok code 0 dose anybody else have same problem? if yes, any fix or solution?

DaftMonk commented 10 years ago

@BehnamF See this https://github.com/DaftMonk/generator-angular-fullstack/issues/105

marebuffi commented 10 years ago

In my case, the only working fix was updating node. Particularly, switching to the latest node, in Node Version Manager.