title: nodejs npm unable to install globally from github URL
body: <p>I am able to install locally using a git URL</p>
  
  <p><a href="https://stackoverflow.com/q/17509669/1068746">How to install an npm package from GitHub directly?</a></p>
  
  <p>however, once I add "-g" flag - it fails. </p>
  
  <p>Here is the entire log</p>
  
  <pre><code>guym@guym-ubuntu:~/dev_env/projects_GIT/cosmo/gs-tmp$ sudo npm -g install git://github.com/visionmedia/express.git
  npm http GET https://registry.npmjs.org/connect/2.8.3
  npm http GET https://registry.npmjs.org/commander/1.2.0
  npm http GET https://registry.npmjs.org/range-parser/0.0.4
  npm http GET https://registry.npmjs.org/mkdirp/0.3.5
  npm http GET https://registry.npmjs.org/cookie/0.1.0
  npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
  npm http GET https://registry.npmjs.org/fresh/0.1.0
  npm http GET https://registry.npmjs.org/methods/0.0.1
  npm http GET https://registry.npmjs.org/cookie-signature/1.0.1
  npm http GET https://registry.npmjs.org/send/0.1.2
  npm http GET https://registry.npmjs.org/debug
  npm http 304 https://registry.npmjs.org/connect/2.8.3
  npm http 304 https://registry.npmjs.org/range-parser/0.0.4
  npm WARN package.json range-parser@0.0.4 No repository field.
  npm http 304 https://registry.npmjs.org/cookie/0.1.0
  npm http 304 https://registry.npmjs.org/commander/1.2.0
  npm http 304 https://registry.npmjs.org/mkdirp/0.3.5
  npm http 304 https://registry.npmjs.org/buffer-crc32/0.2.1
  npm http 304 https://registry.npmjs.org/fresh/0.1.0
  npm WARN package.json fresh@0.1.0 No repository field.
  npm http 304 https://registry.npmjs.org/methods/0.0.1
  npm WARN package.json methods@0.0.1 No repository field.
  npm WARN package.json methods@0.0.1 No readme data.
  npm http 304 https://registry.npmjs.org/cookie-signature/1.0.1
  npm WARN package.json cookie-signature@1.0.1 No repository field.
  npm http 304 https://registry.npmjs.org/send/0.1.2
  npm http 304 https://registry.npmjs.org/debug
  npm http GET https://registry.npmjs.org/mime
  npm http GET https://registry.npmjs.org/keypress
  npm http GET https://registry.npmjs.org/qs/0.6.5
  npm http GET https://registry.npmjs.org/formidable/1.0.14
  npm http GET https://registry.npmjs.org/bytes/0.2.0
  npm http GET https://registry.npmjs.org/uid2/0.0.2
  npm http GET https://registry.npmjs.org/pause/0.0.1
  npm http 304 https://registry.npmjs.org/mime
  npm http 304 https://registry.npmjs.org/keypress
  npm http 304 https://registry.npmjs.org/qs/0.6.5
  npm http 304 https://registry.npmjs.org/bytes/0.2.0
  npm WARN package.json bytes@0.2.0 No repository field.
  npm http 304 https://registry.npmjs.org/formidable/1.0.14
  npm http 304 https://registry.npmjs.org/uid2/0.0.2
  npm http 304 https://registry.npmjs.org/pause/0.0.1
  npm WARN package.json uid2@0.0.2 No repository field.
  npm WARN package.json uid2@0.0.2 No readme data.
  npm WARN package.json pause@0.0.1 No repository field.
  /usr/bin/express -&gt; /usr/lib/node_modules/express/bin/express
  npm WARN package.json cli-table@0.2.0 No repository field.
  npm WARN package.json cheerio-select@0.0.3 No repository field.
  npm WARN package.json github-url-from-git@1.1.1 No repository field.
  npm WARN package.json assert-plus@0.1.2 No repository field.
  npm WARN package.json ctype@0.5.2 No repository field.
  npm WARN package.json eyes@0.1.8 No repository field.
  npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
  npm ERR! peerinvalid Peer generator-angular@0.3.0 wants generator-karma@~0.3.0
  npm ERR! peerinvalid Peer generator-express-angular@0.2.4 wants generator-karma@~0.2.0
  
  npm ERR! System Linux 3.8.0-23-generic
  npm ERR! command "/usr/bin/node" "/usr/bin/npm" "-g" "install" "git://github.com/visionmedia/express.git"
  npm ERR! cwd /home/guym/dev_env/projects_GIT/proj/somename
  npm ERR! node -v v0.10.10
  npm ERR! npm -v 1.2.25
  npm ERR! code EPEERINVALID
  npm ERR! 
  npm ERR! Additional logging details can be found in:
  npm ERR!     /home/guym/dev_env/projects_GIT/proj/somane/npm-debug.log
  npm ERR! not ok code 0
  </code></pre>
  
  <p>EDIT : </p>
  
  <p>Seems that <code>EPEERINVALID</code> error has nothing to do with what I have been trying to accomplish. I globally uninstalled "generaotr-express-angular" and "generator-angular" and it worked. </p>
  
  <p>My question now is </p>
  
  <p>Why did this unrelated problem affected me? How to avoid it?  </p>