title: "ERR! not a package" when installing node.js dependencies for yepnope.js
body: <p>Pretty sure I'm doing something daft here - I'm not convinced it's specific to <a href="http://yepnopejs.com" rel="noreferrer">yepnope</a>... my node knowledge isn't that hot.</p>
  
  <p>Just trying to grab &amp; build the repo to play around with some stuff (I'm <em>not</em> trying to use it on another project here), which I'm doing like this:</p>
  
  <pre><code>$ npm cache clean
  $ git clone https://github.com/SlexAxton/yepnope.js.git
  $ cd yepnope.js
  $ git checkout v2.0     # this is the branch I want
  $ npm install
  </code></pre>
  
  <p>But half way through the process I get something like this:</p>
  
  <pre><code>npm http GET https://registry.npmjs.org/nopt/-/nopt-2.1.1.tgz
  npm http 200 https://registry.npmjs.org/wd/0.0.26
  npm http GET https://registry.npmjs.org/wd/-/wd-0.0.26.tgz
  npm ERR! not a package /var/folders/00/17q10000h01000cxqpysvccm004yw4/T/npm-13923/1363859875320-0.8848134819418192/tmp.tgz
  npm http 304 https://registry.npmjs.org/uglify-js
  npm ERR! Error: ENOENT, open '/var/folders/00/17q10000h01000cxqpysvccm004yw4/T/npm-13923/1363859875320-0.8848134819418192/package/package.json'
  npm ERR! If you need help, you may report this log at:
  npm ERR!     &lt;http://github.com/isaacs/npm/issues&gt;
  npm ERR! or email it to:
  npm ERR!     &lt;npm-@googlegroups.com&gt;
  
  npm ERR! System Darwin 12.2.1
  npm ERR! command "node" "/usr/local/bin/npm" "install"
  npm ERR! cwd /Users/&lt;username&gt;/code/yepnope.js
  npm ERR! node -v v0.8.12
  npm ERR! npm -v 1.2.14
  npm ERR! path /var/folders/00/17q10000h01000cxqpysvccm004yw4/T/npm-13923/1363859875320-0.8848134819418192/package/package.json
  npm ERR! code ENOENT
  npm ERR! errno 34
  </code></pre>
  
  <p>It still continues to the end, but ends with:</p>
  
  <pre><code>Extracting zip contents
  npm ERR!
  npm ERR! Additional logging details can be found in:
  npm ERR!     /Users/&lt;username&gt;/code/yepnope.js/npm-debug.log
  npm ERR! not ok code 0
  </code></pre>
  
  <p>The odd thing is, the <code>npm ERR! not a package</code> line occurs at a different place every time I try it (fresh repo clone every time) &mdash; maybe that's just because it fetches things asynchronously though?</p>
  
  <p>I had a look at <code>npm-debug.log</code> and couldn't find anything too telling near the mentions of the path which is supposedly "not a package" - didn't really want to post the full file on here, but I'm happy to share chunks if someone can suggest what to look for.</p>
  
  <p>Any ideas what's causing this to fail? Big thanks in advance!</p>