Open adoin opened 1 year ago
I think I have the same error for Oracle Cloud - Arm
info REP Build has been failed, trying to do a full rebuild.
npm ERR! info CMD CLEAN
npm ERR! info RUN [
npm ERR! info RUN 'cmake',
npm ERR! info RUN '-E',
npm ERR! info RUN 'remove_directory',
npm ERR! info RUN '/root/node_modules/faiss-node/build'
npm ERR! info RUN ]
npm ERR! info CMD CONFIGURE
npm ERR! info RUN [
npm ERR! info RUN 'cmake',
npm ERR! info RUN '/root/node_modules/faiss-node',
npm ERR! info RUN '--no-warn-unused-cli',
npm ERR! info RUN '-G',
npm ERR! info RUN 'Unix Makefiles',
npm ERR! info RUN '-DCMAKE_JS_VERSION=7.2.1',
npm ERR! info RUN '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/root/node_modules/faiss-node/build/Release',
npm ERR! info RUN '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>',
npm ERR! info RUN '-DCMAKE_JS_INC=/root/node_modules/faiss-node/node_modules/node-api-headers/include;/root/node_modules/faiss-node/node_modules/node-addon-api',
npm ERR! info RUN '-DCMAKE_JS_SRC=',
npm ERR! info RUN '-DNODE_RUNTIME=node',
npm ERR! info RUN '-DNODE_RUNTIMEVERSION=18.17.0',
npm ERR! info RUN '-DNODE_ARCH=arm64',
npm ERR! info RUN '-DCMAKE_JS_LIB=',
npm ERR! info RUN '-DCMAKE_CXX_FLAGS=-DBUILDING_NODE_EXTENSION'
npm ERR! info RUN ]
npm ERR! CMake Error at CMakeLists.txt:51 (add_subdirectory):
npm ERR! add_subdirectory given source "deps/faiss" which is not an existing
npm ERR! directory.
npm ERR!
npm ERR!
npm ERR! CMake Error at CMakeLists.txt:52 (set_target_properties):
npm ERR! set_target_properties Can not find target to add properties to: faiss
npm ERR!
npm ERR!
npm ERR! ERR! OMG Process terminated: 1
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-08-02T05_59_52_569Z-debug-0.log
@adoin From the log provided, it may have something to do with the network. It needs to get the pre-build binary file from github when installing but failed.
│ prebuild-install http request GET https://github.com/ewfian/faiss-node/releases/download/v0.2.2/faiss-node-v0.2.2-n… │ prebuild-install warn install unable to verify the first certificate
You can manual download the pre-build binary with following steps
faiss-node
and remove node_modules
folder--ignore-scripts
npm install faiss-node --ignore-scripts
node_modules\faiss-node\build\Release
@AlloryDante seems relates to https://github.com/ewfian/faiss-node/issues/23, you can try again when new version released.