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

Error: node-openalpr package.json is not node-pre-gyp ready: #27

Open
AviFix opened this issue Oct 30, 2018 · 2 comments
Open

Error: node-openalpr package.json is not node-pre-gyp ready: #27

AviFix opened this issue Oct 30, 2018 · 2 comments

Comments

@AviFix
Copy link

AviFix commented Oct 30, 2018

Hi

i install openalpr and when i try to npm install node-openalpr this error happens

`node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack Error: node-openalpr package.json is not node-pre-gyp ready:
node-pre-gyp ERR! stack package.json must declare these properties:
node-pre-gyp ERR! stack binary.host
node-pre-gyp ERR! stack at validate_config (/home/ubuntu/Escritorio/Watson/Watsi/node_modules/node-openalpr/node_modules/node-pre-gyp/lib/util/versioning.js:220:15)
node-pre-gyp ERR! stack at Object.module.exports.evaluate (/home/ubuntu/Escritorio/Watson/Watsi/node_modules/node-openalpr/node_modules/node-pre-gyp/lib/util/versioning.js:279:5)
node-pre-gyp ERR! stack at handle_gyp_opts (/home/ubuntu/Escritorio/Watson/Watsi/node_modules/node-openalpr/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js:59:27)
node-pre-gyp ERR! stack at configure (/home/ubuntu/Escritorio/Watson/Watsi/node_modules/node-openalpr/node_modules/node-pre-gyp/lib/configure.js:12:5)
node-pre-gyp ERR! stack at /home/ubuntu/Escritorio/Watson/Watsi/node_modules/node-openalpr/node_modules/node-pre-gyp/lib/build.js:43:13
node-pre-gyp ERR! stack at ChildProcess. (/home/ubuntu/Escritorio/Watson/Watsi/node_modules/node-openalpr/node_modules/node-pre-gyp/lib/util/compile.js:85:9)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.13.0-37-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home/ubuntu/Escritorio/Watson/Watsi/node_modules/node-openalpr/node_modules/.bin/node-pre-gyp" "install" "--build-from-source" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/ubuntu/Escritorio/Watson/Watsi/node_modules/node-openalpr
node-pre-gyp ERR! node -v v8.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.9.0
node-pre-gyp ERR! This is a bug in node-pre-gyp.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR! https://github.com/mapbox/node-pre-gyp/issues
npm WARN [email protected] No description
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! [email protected] install: node-pre-gyp install --build-from-source --fallback-to-build
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2018-03-23T19_32_29_952Z-debug.log`

This is the solution: openalpr/openalpr#643 (comment)

If you could please update your ripo

Thanks

@anshgupta1234
Copy link

+1

@gbertoncelli
Copy link
Contributor

gbertoncelli commented Aug 28, 2019

Simply change the package.json binary.host to this repo url. Doing MR.

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

3 participants