verbose / verb

HEADS UP! Verb is going though a major transition, we've completely refactored everything from the ground up. If you're interested, please see the dev branch.
MIT License
481 stars 33 forks source link

Installation Error #4

Closed pavelbinar closed 10 years ago

pavelbinar commented 10 years ago

I am getting this error at the end of npm installation log:

sudo npm i -g phaser --save-dev

npm 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! peerinvalid Peer generator-angular-fullstack@1.2.5 wants generator-karma@>=0.6.0

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "i" "-g" "phaser" "--save-dev"
npm ERR! cwd /Users/pavelbinar/git/tmp/phaser
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/pavelbinar/git/tmp/phaser/npm-debug.log
npm ERR! not ok code 0
doowb commented 10 years ago

Is that the exact command you ran? Those generators aren't part of phaser. Seems like it's something from yeoman.

jonschlinkert commented 10 years ago

well, it says in the log "node" "/usr/local/bin/npm" "i" "-g" "phaser" "--save-dev", but indeed it does look like yo phaser or something. did you do yo something and then && npm i -g phaser --save-dev?

in any case we're thinking about renaming phaser b/c there is a JavaScript framework called phaser that I found after I published this, and they have a yeoman generator - but not a npm package.

pavelbinar commented 10 years ago

Here is the full log from terminal: https://gist.github.com/pavelbinar/6b521452c0429dfdf30a

What about cache issue? No yo involved.

jonschlinkert commented 10 years ago

the part that causing an error is https://gist.github.com/pavelbinar/6b521452c0429dfdf30a#file-error-log-sh-L140-L142, which seems to be related to yeoman generators you have installed globally.

I get similar errors whenever I install something globally. it's because of how yeoman does peerDependencies - causes a lot of issues.

did you actually try running phaser? when I get similar errors it doesn't stop the package in question from actually installing

doowb commented 10 years ago

I think there's an issue with generator-karma and/or generator-angular. See this issue for more information.

As @jonschlinkert said, I think we need to update the docs because we made some changes and the actual phaser library shouldn't be installed in global. Even though, I didn't know that peerDependencies in global modules would affect other other global modules.

pavelbinar commented 10 years ago

Yes I tried to run phaser command, but -bash: phaser: command not found. Here is full log: https://dl.dropboxusercontent.com/u/582525/assemble/npm-debug.log (1.7 MB)

sudo npm install phaser is working

pavelbinar commented 10 years ago

So no global install. All right so we may consider this as closed.

jonschlinkert commented 10 years ago

thanks for working with us on this! it's a new lib, we're still working out some bugs