Skip to content

Instantly share code, notes, and snippets.

@k-bx
Created July 18, 2012 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k-bx/3135753 to your computer and use it in GitHub Desktop.
Save k-bx/3135753 to your computer and use it in GitHub Desktop.
hem error
#!/usr/bin/env node
var path = require('path'),
Module = require('module'),
fs = require('fs');
if (path.existsSync('./slug.js')) {
return Module._load('./slug.js');
}
require('../lib/hem').exec();
hdm-web ➤ hem
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'hem'
at Function._resolveFilename (module.js:317:11)
at Function._load (module.js:262:25)
at require (module.js:346:19)
at Object.<anonymous> (/home/kost/workspace/hdm-web/slug.js:1:82)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at Object.<anonymous> (/usr/local/lib/node_modules/hem/bin/hem:7:17)
at Module._compile (module.js:402:26)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment