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

npm install issue #169

Open
jeepmeng opened this issue Oct 24, 2024 · 0 comments
Open

npm install issue #169

jeepmeng opened this issue Oct 24, 2024 · 0 comments

Comments

@jeepmeng
Copy link

When I install using npm I get the following error,

npm error code 1
npm error path /Users/liufucong/Downloads/web_video/node_modules/face-recognition
npm error command failed
npm error command sh -c node-gyp rebuild
npm error CXX(target) Release/obj.target/facerec/cc/index.o
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | darwin | arm64
npm error gyp info find Python using Python version 3.10.15 found at "/opt/homebrew/opt/[email protected]/bin/python3.10"
npm error gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.10
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/liufucong/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/liufucong/Downloads/web_video/node_modules/face-recognition/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/liufucong/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/liufucong/Library/Caches/node-gyp/18.20.4/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/Users/liufucong/Library/Caches/node-gyp/18.20.4',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/liufucong/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/liufucong/Library/Caches/node-gyp/18.20.4/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/liufucong/Downloads/web_video/node_modules/face-recognition',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../cc/index.cc:1:
npm error In file included from ../../nan/nan.h:62:
npm error In file included from /Users/liufucong/Library/Caches/node-gyp/18.20.4/include/node/node.h:73:
npm error /Users/liufucong/Library/Caches/node-gyp/18.20.4/include/node/v8.h:21:10: fatal error: 'memory' file not found
npm error 21 | #include
npm error | ^~~~~~~~
npm error 1 error generated.
npm error make: *** [Release/obj.target/facerec/cc/index.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: make failed with exit code: 2
npm error gyp ERR! stack at ChildProcess. (/Users/liufucong/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Darwin 24.0.0
npm error gyp ERR! command "/Users/liufucong/.nvm/versions/node/v18.20.4/bin/node" "/Users/liufucong/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /Users/liufucong/Downloads/web_video/node_modules/face-recognition
npm error gyp ERR! node -v v18.20.4
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok

Where should I start to correct this error?

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

1 participant