faiss-node icon indicating copy to clipboard operation
faiss-node copied to clipboard

Install failed

Open adoin opened this issue 1 year ago • 2 comments

.pnpm/[email protected]/node_modules/faiss-node: Running install script, failed in 7s
.../node_modules/faiss-node install$ prebuild-install --runtime napi --verbose || (npm i cmake-js && npm run build)
│ prebuild-install info begin Prebuild-install version 7.1.1
│ prebuild-install info looking for local prebuild @ prebuilds\faiss-node-v0.2.2-napi-v8-win32-x64.tar.gz
│ prebuild-install info looking for cached prebuild @ C:\Users\Administrator\AppData\Roaming\npm-cache\_prebuilds\177…
│ 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
│ changed 70 packages in 1s
│ > [email protected] build
│ > cmake-js compile
│ info find VS using VS2022 (17.6.33815.320) found at:
│ info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
│ info find VS run with --verbose for detailed information
│ info TOOL Using Visual Studio 17 2022 generator.
│ info CMD BUILD
│ info RUN [
│ info RUN   'cmake',
│ info RUN   '--build',
│ info RUN   'D:\\pnpm_repo\\global\\5\\.pnpm\\[email protected]\\node_modules\\faiss-node\\build',
│ info RUN   '--config',
│ info RUN   'Release'
│ info RUN ]
│ MSBuild version 17.6.3+07e294721 for .NET Framework
│ MSBUILD : error MSB1009: ��Ŀ�ļ������ڡ�
│ ����:ALL_BUILD.vcxproj
│ info REP Build has been failed, trying to do a full rebuild.
│ info CMD CLEAN
│ info RUN [
│ info RUN   'cmake',
│ info RUN   '-E',
│ info RUN   'remove_directory',
│ info RUN   'D:\\pnpm_repo\\global\\5\\.pnpm\\[email protected]\\node_modules\\faiss-node\\build'
│ info RUN ]
│ info CMD CONFIGURE
│ info find VS using VS2022 (17.6.33815.320) found at:
│ info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
│ info find VS run with --verbose for detailed information
│ info RUN [
│ info RUN   'cmake',
│ info RUN   'D:\\pnpm_repo\\global\\5\\.pnpm\\[email protected]\\node_modules\\faiss-node',
│ info RUN   '--no-warn-unused-cli',
│ info RUN   '-G',
│ info RUN   'Visual Studio 17 2022',
│ info RUN   '-A',
│ info RUN   'x64',
│ info RUN   '-DCMAKE_JS_VERSION=7.2.1',
│ info RUN   '-DCMAKE_BUILD_TYPE=Release',
│ info RUN   '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=D:\\pnpm_repo\\global\\5\\.pnpm\\[email protected]\\node_modules\\faiss…
│ info RUN   '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>',
│ info RUN   '-DCMAKE_JS_INC=C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\cmake-js\\node_modules\\n…
│ info RUN   '-DCMAKE_JS_SRC=C:/Users/Administrator/AppData/Roaming/npm/node_modules/cmake-js/lib/cpp/win_delay_load_…
│ info RUN   '-DNODE_RUNTIME=node',
│ info RUN   '-DNODE_RUNTIMEVERSION=18.16.1',
│ info RUN   '-DNODE_ARCH=x64',
│ info RUN   '-DCMAKE_JS_LIB=D:\\pnpm_repo\\global\\5\\.pnpm\\[email protected]\\node_modules\\faiss-node\\build\\node…
│ info RUN   '-DCMAKE_JS_NODELIB_DEF=D:\\pnpm_repo\\global\\5\\.pnpm\\[email protected]\\node_modules\\faiss-node\\bui…
│ info RUN   '-DCMAKE_JS_NODELIB_TARGET=D:\\pnpm_repo\\global\\5\\.pnpm\\[email protected]\\node_modules\\faiss-node\\…
│ info RUN   '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE'
│ info RUN ]
│ Not searching for unused variables given on the command line.
│ -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
│ -- The CXX compiler identification is MSVC 19.36.32535.0
│ -- Detecting CXX compiler ABI info
│ -- Detecting CXX compiler ABI info - done
│ -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.…
│ -- Detecting CXX compile features
│ -- Detecting CXX compile features - done
│ CMake Error at CMakeLists.txt:51 (add_subdirectory):
│   add_subdirectory given source "deps/faiss" which is not an existing
│   directory.
│ CMake Error at CMakeLists.txt:52 (set_target_properties):
│   set_target_properties Can not find target to add properties to: faiss
│ Microsoft (R) Library Manager Version 14.36.32535.0
│ Copyright (C) Microsoft Corporation.  All rights reserved.
│   正在创建库 D:\pnpm_repo\global\5\.pnpm\[email protected]\node_modules\faiss-node\build\node.lib 和对象 D:\pnpm_rep…
│ -- Configuring incomplete, errors occurred!
│ ERR! OMG Process terminated: 1
└─ Failed in 7s at D:\pnpm_repo\global\5\.pnpm\[email protected]\node_modules\faiss-node
 ELIFECYCLE  Command failed with exit code 1.

adoin avatar Jul 28 '23 11:07 adoin