mathew-kurian / Scribe.js

:scroll: Node.js logging made simple! Online access to logs and more...
https://mathew-kurian.github.io/Scribe.js/
MIT License
284 stars 45 forks source link

Error: Cannot find module '../scribe' #59

Open imeninnik opened 9 years ago

imeninnik commented 9 years ago

Try to make everything by your instruction npm install and then copy simple express example

E:\***\src>node server
module.js:338
    throw err;
          ^
Error: Cannot find module '../scribe'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at E:\***\server.js:5:18
    at Object.<anonymous> (E:\***\src\server.js:19:3)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
guillaumewuip commented 9 years ago

Examples are intended to be run after a git clone of the repo. Simply change scribe = require('../scribe')() with scribe = require('scribe')()

imeninnik commented 9 years ago

Thanks for answer and sorry, but that also does not helps. I've tried with var scribe = require('../scribe')(); and var scribe = require('scribe')(); as well.

Just to clearify: any other modules I usee in app (like epress, fs, bodyParse, unirest etc) are works as expected

guillaumewuip commented 9 years ago

Ok this is strange. As other modules work as expected I don't understand why it's buggy here. What is your new error message ?

mbuckbee commented 8 years ago

This is quite late, but as a someone else new to node+express+scribe, the necessary change was to

require('scribe-js')()

ghost commented 8 years ago

@mbuckbee That did it for me, thanks!