AriaMinaei / pretty-error

See node.js errors with less clutter
MIT License
1.52k stars 49 forks source link

require('pretty-error'); returns undefined #9

Closed ibc closed 10 years ago

ibc commented 10 years ago
$ node

> var PrettyError = require('pretty-error');
undefined

so obviously var pe = new PrettyError(); also returns undefined and nothing works.

AriaMinaei commented 10 years ago

Hey ibc, it looks like PrettyError isn't downloaded correctly for you. Can you try removing/reinstalling it? package.json should point to ./lib/pretty-error.js as main and that file must exist.

ibc commented 10 years ago

I cannot reproduce the issue again, so let's close this issue. Will report again if I see something new.

Thanks!