Я пытаюсь установить opencv4nodejs
на npm
, но не смог восстановить с тренажерным залом. Вот журнал ошибок:
ERR! Error: Command failed: node-gyp rebuild --jobs max
gyp http GET https://nodejs.org/download/release/v12.18.3/node-v12.18.3-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v12.18.3/node-v12.18.3-headers.tar.gz
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: tar.extract is not a function
gyp ERR! stack at Request.<anonymous> (F:\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:199:22)
gyp ERR! stack at Request.emit (events.js:327:22)
gyp ERR! stack at Request.onRequestResponse (F:\nodejs\node_modules\npm\node_modules\request\request.js:1066:10)
gyp ERR! stack at ClientRequest.emit (events.js:315:20)
gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:596:27)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:469:22)
gyp ERR! stack at TLSSocket.emit (events.js:315:20)
gyp ERR! stack at addChunk (_stream_readable.js:295:12)
gyp ERR! stack at readableAddChunk (_stream_readable.js:271:9)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "F:\\nodejs\\node.exe" "F:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--jobs" "max"
gyp ERR! cwd F:\nodejs\node_global\node_modules\opencv4nodejs
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! <https://github.com/nodejs/node-gyp/issues>
Похоже на ошибку gyp. Подробнее: платформа: win7 узел: v12.18.3 узел-gyp: v5.1.0 npm: v6.14.6