face-recognition.js icon indicating copy to clipboard operation
face-recognition.js copied to clipboard

ERRO WHEN I TRY RUN NPM INSTALL FACE-RECOGNITION

Open thqueiroz opened this issue 5 years ago • 4 comments

Im having a problem when i try run npm install face- recognition. I need to help!

5 warnings and 10 errors generated. make: *** [Release/obj.target/facerec/cc/index.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23) gyp ERR! stack at ChildProcess.emit (events.js:209:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Darwin 19.0.0 gyp ERR! command "/usr/local/Cellar/node/12.9.1/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/thqueiroz/Documents/facerecognition-node/node_modules/face-recognition gyp ERR! node -v v12.9.1 gyp ERR! node-gyp -v v5.0.3 gyp ERR! not ok npm WARN [email protected] No description npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 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.

thqueiroz avatar Oct 15 '19 19:10 thqueiroz

Did it solve? or What alternative did u use?

MukeshKalaga avatar Nov 28 '19 05:11 MukeshKalaga

Did it solve? or What alternative did u use?

I used face-api.js

thqueiroz avatar Nov 28 '19 13:11 thqueiroz

-api.js

How it's work with nodeJS?

Muhammad-Wasi avatar Jan 29 '20 11:01 Muhammad-Wasi

Yeah i fixed it, firstly "Remove spaces in folder name in your directory" Run these command in Ubuntu step by step,

sudo apt-get -y install cmake which cmake /usr/bin/cmake cmake --version cmake version 2.8.12.2

sudo apt-get -y install cmake-qt-gui which cmake-gui /usr/bin/cmake-gui cmake-gui --version cmake version 2.8.12.2

wget https://cmake.org/files/v3.4/cmake-3.4.1-Linux-x86_64.tar.gz tar xf cmake-3.4.1-Linux-x86_64.tar.gz export PATH="pwd/cmake-3.4.1-Linux-x86_64/bin:$PATH" # save it in .bashrc if needed which cmake /.../cmake-3.4.1-Linux-x86_64/bin/cmake which cmake-gui /.../cmake-3.4.1-Linux-x86_64/bin/cmake-gui

then, npm install face-recognition

Muhammad-Wasi avatar Jan 29 '20 12:01 Muhammad-Wasi

fixed by @Muhammad-Wasi

thqueiroz avatar Jan 31 '23 19:01 thqueiroz