codeparty/racer — Issue #2: Cannot find module es5-shim
Author: pspaulding
Created: 2011-12-01 22:45:20+00:00
State: open

I am not clear on how to get the examples running. Starting from an empty C:\racer directory on Windows XP with node v0.6.3 and npm 1.1.0-alpha-3:

C:\racer>npm install racer
npm WARN es5-shim@1.2.10 package.json: bugs['web'] should probably be bugs['url']
racer@0.1.2 ./node_modules/racer
├── es5-shim@1.2.10
├── redis@0.7.1
├── uglify-js@1.1.1
├── socket.io@0.8.7 (policyfile@0.0.4 redis@0.6.7)
├── browserify@1.8.1 (commondir@0.0.1 nub@0.0.0 coffee-script@1.1.3 resolve@0.0.4 deputy@0.0.0 optimist@0.2.8 detect
ive@0.0.4)
├── socket.io-client@0.8.7 (xmlhttprequest@1.2.2 websocket-client@1.0.0 uglify-js@1.0.6)
└── share@0.4.1

C:\racer>node node_modules/racer/examples/pad/server.js

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'express'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (C:\racer\node_modules\racer\examples\pad\server.js:2:11)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)

C:\racer>npm install express
express@2.5.1 ./node_modules/express
├── mkdirp@0.0.7
├── mime@1.2.4
├── qs@0.4.0
└── connect@1.8.1

C:\racer>node node_modules/racer/examples/pad/server.js

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'connect-gzip'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (C:\racer\node_modules\racer\examples\pad\server.js:3:8)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)

C:\racer>npm install connect-gzip
connect-gzip@0.1.5 ./node_modules/connect-gzip
├── mime@1.2.4
└── connect@1.8.1

C:\racer>node node_modules/racer/examples/pad/server.js
info - socket.io started
Go to http://localhost:3011/racer

C:\racer\node_modules\racer\node_modules\browserify\lib\wrap.js:352
throw new Error('Cannot find module ' + JSON.stringify(mfile)
^
Error: Cannot find module "es5-shim" from directory "C:\\racer\\node_modules\\racer\\lib"
at EventEmitter.require (C:\racer\node_modules\racer\node_modules\browserify\lib\wrap.js:352:19)
at C:\racer\node_modules\racer\node_modules\browserify\lib\wrap.js:430:14
at Array.forEach (native)
at EventEmitter.require (C:\racer\node_modules\racer\node_modules\browserify\lib\wrap.js:429:27)
at C:\racer\node_modules\racer\node_modules\browserify\lib\wrap.js:156:14
at Array.forEach (native)
at EventEmitter.addEntry (C:\racer\node_modules\racer\node_modules\browserify\lib\wrap.js:154:22)
at C:\racer\node_modules\racer\node_modules\browserify\index.js:126:15
at Function.bundle (C:\racer\node_modules\racer\node_modules\browserify\index.js:211:12)
at C:\racer\node_modules\racer\lib\racer.js:64:48