我正在使用 npm i node-openalpr 进行安装,但出现如下错误:
node-pre-gyp WARN 使用请求 node-pre-gyp https 下载 node-pre-gyp 错误!未捕获异常节点预gyp错误!堆栈错误:node-openalpr package.json 未准备好 node-pre-gyp:node-pre-gyp ERR!stack package.json 必须声明这些属性: node-pre-gyp ERR!stack binary.host node-pre-gyp ERR!validate_config (C:\Sahal KA\ANPR\node_modules\node-openalpr\node_modules\node-pre-gyp\lib\util\versioning.js:220:15) 的堆栈节点-pre-gyp 错误!堆栈在 Object.module.exports.evaluate (C:\Sahal KA\ANPR\node_modules\node-openalpr\node_modules\node-pre-gyp\lib\util\versioning.js:279:5) node-pre-gyp ERR !堆栈在 handle_gyp_opts (C:\Sahal KA\ANPR\node_modules\node-openalpr\node_modules\node-pre-gyp\lib\util\handle_gyp_opts.js:60:27) node-pre-gyp 错误!堆栈配置(C:\Sahal KA\ANPR\node_modules\node-openalpr\node_modules\node-pre-gyp\lib\configure.js:12:5) node-pre-gyp 错误!堆栈在 C:\Sahal KA\ANPR\node_modules\node-openalpr\node_modules\node-pre-gyp\lib\build.js:43:13 node-pre-gyp ERR!ChildProcess 的堆栈。(C:\Sahal KA\ANPR\node_modules\node-openalpr\node_modules\node-pre-gyp\lib\util\compile.js:85:9) node-pre-gyp 错误!堆栈在 emitTwo (events.js:126:13) node-pre-gyp ERR!ChildProcess.emit (events.js:214:7) node-pre-gyp ERR 的堆栈!堆栈在可能关闭(内部/child_process.js:925:16)节点预gyp错误!堆栈在 Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) node-pre-gyp ERR!系统 Windows_NT 10.0.17134 node-pre-gyp ERR!命令 "C:\Program Files\nodejs\node.exe" "C:
node-pre-gyp
. 节点预gyp错误!如果没有帮助,请尝试更新 node-pre-gyp 并提交问题:node-pre-gyp ERR! https://github.com/mapbox/node-pre-gyp/issues npm ERR!代码 ELIFECYCLE npm 错误!errno 7 npm 错误!node-openalpr@1.1.1 安装:node-pre-gyp install --build-from-source --fallback-to-build
npm ERR!退出状态 7 npm ERR!npm 错误!在 node-openalpr@1.1.1 安装脚本中失败。npm 错误!这可能不是 npm 的问题。上面可能有额外的日志输出。npm 错误!可以在以下位置找到此运行的完整日志:npm ERR!
C:\Users\ADMIN\AppData\Roaming\npm-cache_logs\2018-10-22T08_18_59_445Z-debug.log