phone-number-extractor icon indicating copy to clipboard operation
phone-number-extractor copied to clipboard

NPM package not working

Open mkraeva-astea opened this issue 7 years ago • 4 comments

Using the module after installing it with npm install phone-number-extractor results in the error:

Error: Cannot find module './lib/Extractor'
...

I see in the repository that index.js points to the correct file, it's just the npm package that is broken. Could you release the latest code to npm as well?

mkraeva-astea avatar Sep 05 '17 11:09 mkraeva-astea

+1

komasoftware avatar Oct 23 '17 18:10 komasoftware

I forked the repo and did a

npm install https://github.com/komasoftware/phone-number-extractor.git

which works fine.

komasoftware avatar Oct 23 '17 18:10 komasoftware

It's a matter of case sensitivity. The file is actually extractor.js

shamoons avatar Oct 21 '18 17:10 shamoons

must have been a mac user who authored this. it doesn't work on linux because files are case sensitive.

ralyodio avatar Jan 26 '19 08:01 ralyodio