Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shelljs dependency not installed prior to install script execution #13

Open
ryanbarr opened this issue Jul 20, 2022 · 1 comment
Open

Comments

@ryanbarr
Copy link

Upon installing node-native-ocr with npm install node-native-ocr, I was faced with the following error:

Error: Cannot find module 'shelljs'

This prevents node-native-ocr from properly installing and being added to package.json. The error is caused by the dependency shelljs here: build-tesseract.js#L3.

It seems as though the install script is attempting to use this dependency before installing the shelljs dependency. You can temporarily resolve this issue by manually installing shelljs as a devDependency with npm install --save-dev shelljs.

@ryanbarr ryanbarr changed the title shelljs shelljs dependency not installed prior to install script execution Jul 20, 2022
@Sectaur
Copy link

Sectaur commented Aug 12, 2022

I'm also getting the following error:

build-tesseract script start. This script requires CMake version 3.15 or later. CMake not found on this system.

I'm presuming that any builds in Github actions won't work.
Does something like cmake-js also need to be added ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants