Cannot find module #1

markc opened this Issue Aug 18, 2010 · 7 comments


None yet

6 participants

markc commented Aug 18, 2010

Excellent package, however, I followed the instructions after a clone but got this error...

~/node/node-boilerplate node project/app.js
    throw new Error("Cannot find module '" + request + "'");
Error: Cannot find module ''
 at loadModule (node.js:289:15)
 at require (node.js:420:14)
 at Object.<anonymous> (/home/markc/node/node-boilerplate/project/app.js:6:12)
 at Module._compile (node.js:472:25)
 at Module._loadScriptSync (node.js:482:10)
 at Module.loadSync (node.js:352:12)
 at Object.runMain (node.js:535:24)
 at node.js:760:10
blahed commented Aug 18, 2010

I had a similar issue. I was able to fix it by updating node to the latest version... maybe check that if you haven't already?


I tried reproducing this on a few machines. But could not get the error to occur.


You can fix this error by changing:

, io = require('')


, io = require('Socket.IO-node')

It seems like capitalization is key here.


Thanks Techwraith, just pushed a fix patch.


No problem, thanks for pushing the patch. Love what you've done here!


I encountered a similar error with node v0.1.98-31-g1c6671a. Upgrading to 0.1.104 resolved the problem.

cawoodm commented Sep 6, 2011

It looks to me like this issue is still open on the latest versions (5.4 & 5.5) under windows. For example, I get this error when I try to run node-inspector. Maybe it's because I have to install the module but I can't seem to find out how...

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment