dunso / pdf-parser

Convert PDF content and layout information with pdf.js
Apache License 2.0
21 stars 7 forks source link

Cannot Find Module #2

Closed artem-alek closed 6 years ago

artem-alek commented 6 years ago

after cloning and then running the test pdf with node pdf2json it cannot find module

    throw err;
    ^

Error: Cannot find module '/xxx/xxxxxxxl/xxxxx/pdf-parser/pdf2json'
    at Function.Module._resolveFilename (module.js:555:15)
    at Function.Module._load (module.js:482:25)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:618:3
dunso commented 6 years ago

The example is in the file example/node/pdf2json.js. If you are in the root directory, you can use node example/node/pdf2json to run the example. Or you can cd example/node and then node pdf2json. Have a good time!