$ git clone https://github.com/donejs/bitcentive && cd bitcentive
$ git checkout fail-loading
$ npm install
$ npm start
Note: the app is served from /public with its own /public/node_modules.
http://localhost:3030/test.html
steal.js:6621
SyntaxError: Error loading "[email protected]#lib/socket" at http://localhost:3030/node_modules/socket.io-client/lib/socket.js
Error loading "[email protected]#lib/socket" from "[email protected]#test/test" at http://localhost:3030/test/test.js
Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
...
The response for the missing file is the index page:
http://localhost:3030/node_modules/steal-socket.io/node_modules/component-emitter/package.json
<!DOCTYPE html>
<html>
<head> ...