You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drivelist/node_modules/node-addon-api/napi-inl.h:718:24: error: use of undeclared identifier 'node_api_get_module_file_name' napi_status status = node_api_get_module_file_name(_env, &result);
#460
drivelist % npm i
> [email protected] install
> prebuild-install --runtime napi || node-gyp rebuild
prebuild-install warn install No prebuilt binaries found (target=8 runtime=napi arch=arm64 libc= platform=darwin)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | arm64
gyp info find Python using Python version 3.10.0 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3"
gyp info spawn /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
gyp info spawn args [
gyp info spawn args '/ide-space/git/drivelist/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/ide-space/git/drivelist/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/ide-space/git/drivelist/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/ggg/Library/Caches/node-gyp/20.9.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/ggg/Library/Caches/node-gyp/20.9.0',
gyp info spawn args '-Dnode_gyp_dir=/ide-space/git/drivelist/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/ggg/Library/Caches/node-gyp/20.9.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/ide-space/git/drivelist',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CC(target) Release/obj.target/nothing/node_modules/node-addon-api/nothing.o
LIBTOOL-STATIC Release/nothing.a
warning: /Library/Developer/CommandLineTools/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
CXX(target) Release/obj.target/drivelist/src/drivelist.o
In file included from ../src/drivelist.cpp:17:
In file included from ../src/drivelist.hpp:20:
In file included from /ide-space/git/drivelist/node_modules/node-addon-api/napi.h:3273:
/ide-space/git/drivelist/node_modules/node-addon-api/napi-inl.h:718:24: error: use of undeclared identifier 'node_api_get_module_file_name'
napi_status status = node_api_get_module_file_name(_env, &result);
^
/ide-space/git/drivelist/node_modules/node-addon-api/napi-inl.h:3297:43: error: use of undeclared identifier 'node_api_create_syntax_error'
env, message, std::strlen(message), node_api_create_syntax_error);
^
/ide-space/git/drivelist/node_modules/node-addon-api/napi-inl.h:3302:45: error: use of undeclared identifier 'node_api_create_syntax_error'
env, message.c_str(), message.size(), node_api_create_syntax_error);
^
/ide-space/git/drivelist/node_modules/node-addon-api/napi-inl.h:5051:6: warning: constexpr if is a C++17 extension [-Wc++17-extensions]
if constexpr (details::HasBasicFinalizer<T>::value) {
^
/ide-space/git/drivelist/node_modules/node-addon-api/napi-inl.h:5061:6: warning: constexpr if is a C++17 extension [-Wc++17-extensions]
if constexpr (details::HasExtendedFinalizer<T>::value) {
^
2 warnings and 3 errors generated.
make: *** [Release/obj.target/drivelist/src/drivelist.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (/ide-space/git/drivelist/node_modules/node-gyp/lib/build.js:216:23)
gyp ERR! System Darwin 24.0.0
gyp ERR! command "/Users/ggg/.nvm/versions/node/v20.9.0/bin/node" "/ide-space/git/drivelist/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /ide-space/git/drivelist
gyp ERR! node -v v20.9.0
gyp ERR! node-gyp -v v10.2.0
gyp ERR! not ok
npm ERR! code 1
npm ERR! path /ide-space/git/drivelist
npm ERR! command failed
npm ERR! command sh -c prebuild-install --runtime napi || node-gyp rebuild
npm ERR! A complete log of this run can be found in: /Users/ggg/.npm/_logs/2024-10-23T08_38_13_235Z-debug-0.log
the issue line in log :
node_modules/node-addon-api/napi-inl.h:718:24: error: use of undeclared identifier 'node_api_get_module_file_name'
napi_status status = node_api_get_module_file_name(_env, &result);
what reason cause this ? thanks for help
The text was updated successfully, but these errors were encountered:
I face this problem, while
throw error :
the issue line in log :
what reason cause this ? thanks for help
The text was updated successfully, but these errors were encountered: