NPM人脸识别的问题

时间:2021-02-25 22:05:22

标签: node.js npm installation face-recognition

我正在尝试以这种方式安装 javascript 库“face-recognition”: https://openbase.com/js/face-recognition/documentation

当我这样做

npm install face-recognition

我收到此错误:

-- Configuring incomplete, errors occurred!
child process exited with code 1
npm WARN @tensorflow-models/mobilenet@2.1.0 requires a peer of @tensorflow/tfjs-converter@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tensorflow-models/mobilenet@2.1.0 requires a peer of @tensorflow/tfjs-core@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN get-image-data@5.0.0 requires a peer of jimp@^0.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN get-image-data@5.0.0 requires a peer of sharp@^0.25.4 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.7 (node_modules/osx-temperature-sensor):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dlib-build@0.1.1 install: `node ./install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dlib-build@0.1.1 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!     /opt/iobroker/.npm/_logs/2021-02-25T21_58_06_688Z-debug.log
root@iobroker:/opt/iobroker/cmake-2.8.3#

有人可以帮我吗?谢谢!

0 个答案:

没有答案