AriaMinaei / pretty-error

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

doesn't work on windows #39

Open HansHammel opened 7 years ago

HansHammel commented 7 years ago

a little test (win10, node 6.9.1) shows:

C:\l\Neuer Ordner\node_modules\license-compatibility-checker\index.js:12
f
^

  ReferenceError: f is not defined
  
  - index.js:12 Object.<anonymous>
    [Neuer Ordner]/[license-compatibility-checker]/index.js:12:1
  
  - module.js:570 Module._compile
    module.js:570:32
  
  - module.js:579 Object.Module._extensions..js
    module.js:579:10
  
  - module.js:487 Module.load
    module.js:487:32
  
  - module.js:446 tryModuleLoad
    module.js:446:12
  
  - module.js:438 Function.Module._load
    module.js:438:3
  
  - module.js:497 Module.require
    module.js:497:17
  
  - module.js:20 require
    internal/module.js:20:19
  
  - t.js:3 Object.<anonymous>
    C:/l/Neuer Ordner/t.js:3:12
  
  - module.js:570 Module._compile
    module.js:570:32
  

KangdaOOLin commented 6 years ago

It can't pretty colorful errors created by throw statement, so you should invoke the api withoutColors to disable colors