FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

Global install via npm fails #82

Closed michaelmior closed 11 years ago

michaelmior commented 11 years ago

A local install works, but a global install gives the error below

$ sudo npm install -g ungit
npm http GET https://registry.npmjs.org/ungit
npm http 200 https://registry.npmjs.org/ungit
npm http GET https://registry.npmjs.org/ungit/-/ungit-0.1.5.tgz
npm http 200 https://registry.npmjs.org/ungit/-/ungit-0.1.5.tgz
/usr/bin/ungit -> /usr/lib/node_modules/ungit/bin/ungit
npm ERR! peerinvalid The package flatiron does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer flatiron-cli-config@0.1.3 wants flatiron@~0.1.9
npm ERR! peerinvalid Peer flatiron-cli-users@0.1.1 wants flatiron@~0.1.9

npm ERR! System Linux 3.8.0-29-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "ungit"
npm ERR! cwd /root
npm ERR! node -v v0.10.16
npm ERR! npm -v 1.3.8
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/mmior/Downloads/npm-debug.log
npm ERR! not ok code 0
jermenkoo commented 11 years ago

I am getting the same error.

npm ERR! peerinvalid Peer flatiron-cli-config@0.1.3 wants flatiron@~0.1.9

Did you try to install flatiron 0.1.9 beforehand?

michaelmior commented 11 years ago

Hmm, seems to be a bug with flatiron actually. I get the same error just trying install flatiron on its own.

michaelmior commented 11 years ago

Actually, it ultimately seemed to be a bug with my node installation. I noticed I had an old version of the jitsu command-line tool. Removing this solved the problem for me.