Skip to content

Instantly share code, notes, and snippets.

@ecavazos
Created December 26, 2009 16:15
Show Gist options
  • Save ecavazos/263979 to your computer and use it in GitHub Desktop.
Save ecavazos/263979 to your computer and use it in GitHub Desktop.
var sys = require('sys');
var b;
try {
//var b = require('./../module_b');
var b = require('../module_b');
} catch(e) {
sys.puts(e);
}
exports.crap = function() {
return 'crap';
};
// RESULTS IN:
node_test: node c/module_c.js
Error: Cannot find module './../module_b'
node_test: node c/module_c.js
Error: Cannot find module '../module_b'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment