Giter Club home page Giter Club logo

Comments (2)

AlloryDante avatar AlloryDante commented on July 19, 2024

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

from faiss-node.

ewfian avatar ewfian commented on July 19, 2024

@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

  1. Uninstall faiss-node and remove node_modules folder
  2. Install faiss-node without auto download pre-build binary by adding --ignore-scripts
npm install faiss-node --ignore-scripts
  1. Download the corresponding packaged pre-build binary form https://github.com/ewfian/faiss-node/releases
  2. Uncompress the packaged pre-build binary and copy the files into node_modules\faiss-node\build\Release

@AlloryDante seems relates to #23, you can try again when new version released.

from faiss-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.