nisaacson / pdf-extract

Node PDF Extract
MIT License
383 stars 76 forks source link

npm test Failing on Ubuntu 12.04 #2

Closed joffemd closed 10 years ago

joffemd commented 10 years ago

Followed the installation steps and then tried running npm test. I got an error indicating the absence of mocha. Installed node.js and mocha (which I did not see among the prerequisites), but sill get an error. Here is the terminal output:

node_modules/.bin/mocha --reporter spec

sh: 1: node_modules/.bin/mocha: not found npm ERR! Test failed. See above for more details. npm ERR! not ok code 0

I suspect that the problem is that mocha is not in the expected folder.

nisaacson commented 10 years ago

did you execute npm install before running the tests?

cd /path/to/pdf-extract
npm install
npm test
joffemd commented 10 years ago

No and this seems to have been the problem. For the record, I ran

sudo npm install sudo test

Regards, Marc

From: Noah Isaacson [mailto:notifications@github.com] Sent: Tuesday, December 17, 2013 1:41 PM To: nisaacson/pdf-extract Cc: marc@publicsectorcredit.org Subject: Re: [pdf-extract] npm test Failing on Ubuntu 12.04 (#2)

did you execute npm install before running the tests?

cd /path/to/pdf-extract

npm install

npm test

— Reply to this email directly or view it on GitHubhttps://github.com/nisaacson/pdf-extract/issues/2#issuecomment-30794028.

joffemd commented 10 years ago

I now have passed all the tests. I had a problem with the tesseract installation and noticed a small error in the readme. Instead of:

cp "./share/alphanumeric" "/usr/share/tesseract-ocr/tessdata/configs/alphanumeric"

it should read:

cp "./share/configs/alphanumeric" "/usr/share/tesseract-ocr/tessdata/configs/alphanumeric"

nisaacson commented 10 years ago

Good catch. Consider sending a pull request if you have time

joffemd commented 10 years ago

Leaving for the holidays so I don't think I can get to that.

Sent from my Verizon Wireless 4G LTE Smartphone

-------- Original message -------- From: Noah Isaacson notifications@github.com Date: 12/21/2013 11:07 PM (GMT-08:00) To: nisaacson/pdf-extract pdf-extract@noreply.github.com Cc: marc@publicsectorcredit.org Subject: Re: [pdf-extract] npm test Failing on Ubuntu 12.04 (#2)

Good catch. Consider sending a pull request if you have time

— Reply to this email directly or view it on GitHubhttps://github.com/nisaacson/pdf-extract/issues/2#issuecomment-31080269.