title: Browserify build fails with local version of an npm module in my package.json dependencies
body: <p>I've managed to setup a <code>package.json</code> and build my app's dependencies into a bundle using <code>browserify</code>, however, when I try and switch out one of the dependencies for a forked local copy the build fails.</p>
  
  <p>This works and installs the upstream version (omitting the other modules):</p>
  
  <pre><code>"dependencies": {"react-bootstrap": "0.13.0"}
  </code></pre>
  
  <p>A local path to my fork fails:</p>
  
  <pre><code>"dependencies": {"react-bootstrap": "/home/tom/dev/react-bootstrap/"}
  </code></pre>
  
  <p>As does using <code>npm link</code>, which seems to be the "correct" way of managing a local version with minimal hassle.</p>
  
  <p>Finally, using the git url to my fork also fails:</p>
  
  <pre><code>"dependencies": {"react-bootstrap": "git://github.com/tompaton/react-bootstrap.git"}
  </code></pre>
  
  <p>I tried updating the <code>package.json</code> in the <code>react-bootstrap</code> module so the repository url pointed to <code>tompaton/react-bootstrap</code> but that didn't make any difference.</p>
  
  <p>The error message I'm getting is not shedding any light on the situation:</p>
  
  <pre><code>(cycles)tom@neon:~/dev/flask_projects/cycles!$ npm run build
  
  &gt; Cycles@1.0.0 build /home/tom/dev/flask_projects/cycles
  &gt; browserify -r react-bootstrap -o static/lib-runtime.js
  
  Error: Cannot find module 'react-bootstrap' from '/home/tom/dev/flask_projects/cycles'
      at /home/tom/dev/flask_projects/cycles/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:50:17
      at process (/home/tom/dev/flask_projects/cycles/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:119:43)
      at /home/tom/dev/flask_projects/cycles/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:128:21
      at load (/home/tom/dev/flask_projects/cycles/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:60:43)
      at /home/tom/dev/flask_projects/cycles/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:66:22
      at /home/tom/dev/flask_projects/cycles/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:21:47
      at Object.oncomplete (fs.js:107:15)
  
  npm ERR! Cycles@1.0.0 build: `browserify -r react-bootstrap -o static/lib-runtime.js`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the Cycles@1.0.0 build script.
  npm ERR! This is most likely a problem with the Cycles package,
  npm ERR! not with npm itself.
  npm ERR! Tell the author that this fails on your system:
  npm ERR!     browserify -r react-bootstrap -o static/lib-runtime.js
  npm ERR! You can get their info via:
  npm ERR!     npm owner ls Cycles
  npm ERR! There is likely additional logging output above.
  npm ERR! System Linux 3.13.0-43-generic
  npm ERR! command "/usr/bin/node" "/usr/bin/npm" "run" "build-runtime"
  npm ERR! cwd /home/tom/dev/flask_projects/cycles
  npm ERR! node -v v0.10.26
  npm ERR! npm -v 1.4.3
  npm ERR! code ELIFECYCLE
  npm ERR! 
  npm ERR! Additional logging details can be found in:
  npm ERR!     /home/tom/dev/flask_projects/cycles/npm-debug.log
  npm ERR! not ok code 0
  </code></pre>
  
  <p><code>/home/tom/dev/flask_projects/cycles/npm-debug.log</code> has the same information.</p>
  
  <p>The <code>node_modules</code> folder looks like:</p>
  
  <pre><code>(cycles)tom@neon:~/dev/flask_projects/cycles!$ ls -al node_modules/react-bootstrap/
  total 64
  drwxrwxr-x  7 tom tom 4096 Dec 16 22:00 .
  drwxrwxr-x 14 tom tom 4096 Dec 16 22:00 ..
  drwxr-xr-x  6 tom tom 4096 Dec 16 22:00 docs
  -rw-r--r--  1 tom tom 3886 Dec 16 22:00 Gruntfile.js
  drwxr-xr-x  3 tom tom 4096 Dec 16 22:00 ie8
  -rw-r--r--  1 tom tom  228 Dec 16 22:00 .jshintrc
  -rw-r--r--  1 tom tom  425 Dec 16 22:00 karma.ci.js
  -rw-r--r--  1 tom tom  390 Dec 16 22:00 karma.dev.js
  -rw-r--r--  1 tom tom 1123 Dec 16 22:00 LICENSE
  -rw-r--r--  1 tom tom  146 Dec 16 22:00 .npmignore
  -rw-r--r--  1 tom tom 3596 Dec 16 22:00 package.json
  -rw-r--r--  1 tom tom 1345 Dec 16 22:00 README.md
  drwxr-xr-x  3 tom tom 4096 Dec 16 22:00 src
  drwxr-xr-x  3 tom tom 4096 Dec 16 22:00 test
  drwxr-xr-x  5 tom tom 4096 Dec 16 22:00 tools
  -rw-r--r--  1 tom tom   37 Dec 16 22:00 .travis.yml
  </code></pre>
  
  <p>So <code>npm install</code> has downloaded the right version and the permissions are fine.</p>
  
  <p>Can anyone tell me how to resolve this? or at least to point me to better information on what the actual error is?</p>