Skip to content

Instantly share code, notes, and snippets.

@kriszyp
Created December 22, 2009 05:42
Show Gist options
  • Save kriszyp/261533 to your computer and use it in GitHub Desktop.
Save kriszyp/261533 to your computer and use it in GitHub Desktop.
exports.name = "test";
require("../a");
try{
require.paths.push(".");
require("folder/b");
require("sys").puts("done");
}
catch(e){
require("sys").puts("error " + e);
}
# node c.js
error Error: Cannot find module '../a'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment