hubotio / generator-hubot

Hubot generator for Yeoman
MIT License
155 stars 91 forks source link

peerDependencies requirements fail on Mac #37

Closed mrmechko closed 9 years ago

mrmechko commented 9 years ago

When trying to run yo hubot I get the following error:

npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "hubot" "hubot-scripts" "hubot-diagnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images" "hubot-google-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain" "hubot-rules" "hubot-shipit" "hubot-youtube" "hubot-slack" "--save"
npm ERR! node v0.10.32
npm ERR! npm  v2.1.4
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package hubot does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer hubot-diagnostics@0.0.1 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-google-translate@0.1.0 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-help@0.1.1 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-heroku-keepalive@0.0.4 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-maps@0.0.1 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-pugme@0.1.0 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-rules@0.1.0 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-shipit@0.1.2 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-youtube@0.1.2 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-google-images@0.1.4 wants hubot@2.x
npm ERR! peerinvalid Peer hubot-redis-brain@0.0.2 wants hubot@2.x

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/me/pathToProject/npm-debug.log

It seems hubot was updated a few days ago, could this be the cause?

technicalpickles commented 9 years ago

That is pretty weird! I was wondering if you could include the npm-debug.log? I'm mostly curious which version of hubot was trying to be installed.

My other suspicion is it might have to do with npm not liking the 'hubot@2.x' format.

cheningD commented 9 years ago

I changed all occurrences of 2.x to * in my hubot directory as a temporary fix

mrmechko commented 9 years ago

@technicalpickles I put the log in this gist: https://gist.github.com/mrmechko/6475fb02c922cec3aa7f

@cheningD thanks for the suggestion!

technicalpickles commented 9 years ago

This is fixed now, more details in https://github.com/github/hubot/issues/891

technicalpickles commented 9 years ago

@cheningD I'd suggest running yo hubot in the directory you created for your hubot. That should fix the package.json and the installed dependencies.