Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG]windows can't install package to run programe

Open AiDaShi opened this issue 1 year ago • 5 comments

PS C:\Windows\system32> npx flowise start
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
npm WARN ERESOLVE overriding peer dependency
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated [email protected]: Use your platform's native DOMException instead
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated [email protected]: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.
npm WARN deprecated [email protected]: < 21.3.7 is no longer supported
npm WARN deprecated [email protected]: < 21.3.7 is no longer supported
npm WARN deprecated [email protected]: Version no longer supported. Upgrade to @latest
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\Admin\\AppData\\Local\\npm-cache\\_npx\\8b95a19c5c9c8708\\node_modules\\flowise-components',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\Admin\AppData\Local\npm-cache\_npx\8b95a19c5c9c8708\node_modules\flowise-components\node_modules\faiss-node\node_modules'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\Admin\\AppData\\Local\\npm-cache\\_npx\\8b95a19c5c9c8708\\node_modules\\flowise-components\\node_modules\\faiss-node\\node_modules'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]

AiDaShi avatar Jan 20 '24 06:01 AiDaShi

i'd suggest running npm install -g flowise, then npx flowise start. am using windows as well

HenryHengZJ avatar Jan 20 '24 14:01 HenryHengZJ

i'd suggest running npm install -g flowise, then npx flowise start. am using windows as well still not working,orther I install flowise-components package same error:

C:\Users\Admin>npm install -g flowise --registry=https://registry.npm.taobao.org
npm WARN ERESOLVE overriding peer dependency
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated [email protected]: Use your platform's native DOMException instead
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated [email protected]: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.
npm WARN deprecated [email protected]: < 21.3.7 is no longer supported
npm WARN deprecated [email protected]: < 21.3.7 is no longer supported
npm WARN deprecated [email protected]: Version no longer supported. Upgrade to @latest
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\@babel\\runtime',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\@babel\runtime'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\@babel\\runtime'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\graphql\validation\rules'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\graphql\\validation\\rules'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\graphql',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\graphql\validation'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\graphql\\validation'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\@mui\material'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\@mui\\material'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\react-code-blocks',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\react-code-blocks\node_modules\styled-components\node_modules\babel-plugin-styled-components\lib\visitors'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\react-code-blocks\\node_modules\\styled-components\\node_modules\\babel-plugin-styled-components\\lib\\visitors'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\date-fns\esm'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\date-fns\\esm'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\@aws-sdk\\token-providers',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\@aws-sdk\token-providers\node_modules\@aws-crypto'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\@aws-sdk\\token-providers\\node_modules\\@aws-crypto'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\mathjax-full',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\mathjax-full\components\src\input\mml'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\mathjax-full\\components\\src\\input\\mml'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\flowise-components\node_modules\faiss-node
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install --runtime napi --verbose || (npm i cmake-js && npm run build)
npm ERR! changed 70 packages in 11s
npm ERR!
npm ERR! > [email protected] build
npm ERR! > cmake-js compile
npm ERR!
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
npm ERR! -- The CXX compiler identification is MSVC 19.38.33134.0
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: D:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! Microsoft (R) Library Manager Version 14.38.33134.0
npm ERR! Copyright (C) Microsoft Corporation.  All rights reserved.
npm ERR!
npm ERR!   正在创建库 D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\flowise-components\node_modules\faiss-node\build\node.lib 和对象 D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\flowise-components\node_modules\faiss-node\build\node.exp
npm ERR! -- Configuring incomplete, errors occurred!
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
npm ERR! -- The CXX compiler identification is MSVC 19.38.33134.0
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: D:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! Microsoft (R) Library Manager Version 14.38.33134.0
npm ERR! Copyright (C) Microsoft Corporation.  All rights reserved.
npm ERR!
npm ERR!   正在创建库 D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\flowise-components\node_modules\faiss-node\build\node.lib 和对象 D:\Users\Admin\AppData\Roaming\nvm\v18.19.0\node_modules\flowise\node_modules\flowise-components\node_modules\faiss-node\build\node.exp
npm ERR! -- Configuring incomplete, errors occurred!
npm ERR! prebuild-install info begin Prebuild-install version 7.1.1
npm ERR! prebuild-install info looking for local prebuild @ prebuilds\faiss-node-v0.2.3-napi-v8-win32-x64.tar.gz
npm ERR! prebuild-install info looking for cached prebuild @ C:\Users\Admin\AppData\Local\npm-cache\_prebuilds\4d9b3d-faiss-node-v0.2.3-napi-v8-win32-x64.tar.gz
npm ERR! prebuild-install http request GET https://github.com/ewfian/faiss-node/releases/download/v0.2.3/faiss-node-v0.2.3-napi-v8-win32-x64.tar.gz
npm ERR! prebuild-install warn install connect ETIMEDOUT 20.205.243.166:443
npm ERR! info find VS using VS2022 (17.8.34511.84) found at:
npm ERR! info find VS "D:\Program Files\Microsoft Visual Studio\2022\Professional"
npm ERR! info find VS run with --verbose for detailed information
npm ERR! info TOOL Using Visual Studio 17 2022 generator.
npm ERR! info CMD CONFIGURE
npm ERR! info find VS using VS2022 (17.8.34511.84) found at:
npm ERR! info find VS "D:\Program Files\Microsoft Visual Studio\2022\Professional"
npm ERR! info find VS run with --verbose for detailed information
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\flowise-components\\node_modules\\faiss-node',
npm ERR! info RUN   '--no-warn-unused-cli',
npm ERR! info RUN   '-G',
npm ERR! info RUN   'Visual Studio 17 2022',
npm ERR! info RUN   '-A',
npm ERR! info RUN   'x64',
npm ERR! info RUN   '-DCMAKE_JS_VERSION=7.3.0',
npm ERR! info RUN   '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN   '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\flowise-components\\node_modules\\faiss-node\\build',
npm ERR! info RUN   '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>',
npm ERR! info RUN   '-DCMAKE_JS_INC=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\cmake-js\\node_modules\\node-api-headers\\include;D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\node-addon-api',
npm ERR! info RUN   '-DCMAKE_JS_SRC=D:/Users/Admin/AppData/Roaming/nvm/v18.19.0/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc',
npm ERR! info RUN   '-DNODE_RUNTIME=node',
npm ERR! info RUN   '-DNODE_RUNTIMEVERSION=18.19.0',
npm ERR! info RUN   '-DNODE_ARCH=x64',
npm ERR! info RUN   '-DCMAKE_JS_LIB=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\flowise-components\\node_modules\\faiss-node\\build\\node.lib',
npm ERR! info RUN   '-DCMAKE_JS_NODELIB_DEF=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\cmake-js\\node_modules\\node-api-headers\\def\\node_api.def',
npm ERR! info RUN   '-DCMAKE_JS_NODELIB_TARGET=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\flowise-components\\node_modules\\faiss-node\\build\\node.lib',
npm ERR! info RUN   '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE'
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! 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   'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\flowise-components\\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   'D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\flowise-components\\node_modules\\faiss-node',
npm ERR! info RUN   '--no-warn-unused-cli',
npm ERR! info RUN   '-G',
npm ERR! info RUN   'Visual Studio 17 2022',
npm ERR! info RUN   '-A',
npm ERR! info RUN   'x64',
npm ERR! info RUN   '-DCMAKE_JS_VERSION=7.3.0',
npm ERR! info RUN   '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN   '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\flowise-components\\node_modules\\faiss-node\\build',
npm ERR! info RUN   '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>',
npm ERR! info RUN   '-DCMAKE_JS_INC=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\cmake-js\\node_modules\\node-api-headers\\include;D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\node-addon-api',
npm ERR! info RUN   '-DCMAKE_JS_SRC=D:/Users/Admin/AppData/Roaming/nvm/v18.19.0/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc',
npm ERR! info RUN   '-DNODE_RUNTIME=node',
npm ERR! info RUN   '-DNODE_RUNTIMEVERSION=18.19.0',
npm ERR! info RUN   '-DNODE_ARCH=x64',
npm ERR! info RUN   '-DCMAKE_JS_LIB=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\flowise-components\\node_modules\\faiss-node\\build\\node.lib',
npm ERR! info RUN   '-DCMAKE_JS_NODELIB_DEF=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\cmake-js\\node_modules\\node-api-headers\\def\\node_api.def',
npm ERR! info RUN   '-DCMAKE_JS_NODELIB_TARGET=D:\\Users\\Admin\\AppData\\Roaming\\nvm\\v18.19.0\\node_modules\\flowise\\node_modules\\flowise-components\\node_modules\\faiss-node\\build\\node.lib',
npm ERR! info RUN   '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE'
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: C:\Users\Admin\AppData\Local\npm-cache\_logs\2024-01-20T16_14_55_014Z-debug-0.log
> npm i flowise-components --registry=https://registry.npm.taobao.org
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: Use your platform's native DOMException instead
npm WARN deprecated [email protected]: [email protected]
npm WARN deprecated [email protected]: < 21.3.7 is no longer supported
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\puppeteer\\node_modules\\puppeteer-core',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\ai\AIGC\FlowiseAIFullVersion\packages\components\node_modules\puppeteer\node_modules\puppeteer-core'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\puppeteer\\node_modules\\puppeteer-core'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\ai\AIGC\FlowiseAIFullVersion\packages\components\node_modules\faiss-node
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install --runtime napi --verbose || (npm i cmake-js && npm run build)
npm ERR! added 591 packages in 3m
npm ERR!
npm ERR! > [email protected] build
npm ERR! > cmake-js compile
npm ERR!
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
npm ERR! -- The CXX compiler identification is MSVC 19.38.33134.0
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: D:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! Microsoft (R) Library Manager Version 14.38.33134.0
npm ERR! Copyright (C) Microsoft Corporation.  All rights reserved.
npm ERR!
npm ERR!   正在创建库 D:\ai\AIGC\FlowiseAIFullVersion\packages\components\node_modules\faiss-node\build\node.lib 和对象 D:\ai\AIGC\FlowiseAIFullVersion\packages\components\node_modules\faiss-node\build\node.exp
npm ERR! -- Configuring incomplete, errors occurred!
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
npm ERR! -- The CXX compiler identification is MSVC 19.38.33134.0
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: D:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! Microsoft (R) Library Manager Version 14.38.33134.0
npm ERR! Copyright (C) Microsoft Corporation.  All rights reserved.
npm ERR! 
npm ERR!   正在创建库 D:\ai\AIGC\FlowiseAIFullVersion\packages\components\node_modules\faiss-node\build\node.lib 和对象 D:\ai\AIGC\FlowiseAIFullVersion\packages\components\node_modules\faiss-node\build\node.exp
npm ERR! -- Configuring incomplete, errors occurred!
npm ERR! prebuild-install info begin Prebuild-install version 7.1.1
npm ERR! prebuild-install info looking for local prebuild @ prebuilds\faiss-node-v0.2.3-napi-v8-win32-x64.tar.gz
npm ERR! prebuild-install info looking for cached prebuild @ C:\Users\Admin\AppData\Local\npm-cache\_prebuilds\4d9b3d-faiss-node-v0.2.3-napi-v8-win32-x64.tar.gz
npm ERR! prebuild-install http request GET https://github.com/ewfian/faiss-node/releases/download/v0.2.3/faiss-node-v0.2.3-napi-v8-win32-x64.tar.gz
npm ERR! prebuild-install warn install connect ETIMEDOUT 20.205.243.166:443
npm ERR! npm WARN deprecated [email protected]: this library is no longer supported
npm ERR! npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm ERR! npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! info find VS using VS2022 (17.8.34511.84) found at:
npm ERR! info find VS "D:\Program Files\Microsoft Visual Studio\2022\Professional"
npm ERR! info find VS run with --verbose for detailed information
npm ERR! info TOOL Using Visual Studio 17 2022 generator.
npm ERR! info CMD CONFIGURE
npm ERR! info find VS using VS2022 (17.8.34511.84) found at:
npm ERR! info find VS "D:\Program Files\Microsoft Visual Studio\2022\Professional"
npm ERR! info find VS run with --verbose for detailed information
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   'D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node',
npm ERR! info RUN   '--no-warn-unused-cli',
npm ERR! info RUN   '-G',
npm ERR! info RUN   'Visual Studio 17 2022',
npm ERR! info RUN   '-A',
npm ERR! info RUN   'x64',
npm ERR! info RUN   '-DCMAKE_JS_VERSION=7.3.0',
npm ERR! info RUN   '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN   '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\build',
npm ERR! info RUN   '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>',
npm ERR! info RUN   '-DCMAKE_JS_INC=D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\node_modules\\node-api-headers\\include;D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\node_modules\\node-addon-api',
npm ERR! info RUN   '-DCMAKE_JS_SRC=D:/ai/AIGC/FlowiseAIFullVersion/packages/components/node_modules/faiss-node/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc',
npm ERR! info RUN   '-DNODE_RUNTIME=node',
npm ERR! info RUN   '-DNODE_RUNTIMEVERSION=18.19.0',
npm ERR! info RUN   '-DNODE_ARCH=x64',
npm ERR! info RUN   '-DCMAKE_JS_LIB=D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\build\\node.lib',
npm ERR! info RUN   '-DCMAKE_JS_NODELIB_DEF=D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\node_modules\\node-api-headers\\def\\node_api.def',
npm ERR! info RUN   '-DCMAKE_JS_NODELIB_TARGET=D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\build\\node.lib',
npm ERR! info RUN   '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE'
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! 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   'D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\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   'D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node',
npm ERR! info RUN   '--no-warn-unused-cli',
npm ERR! info RUN   '-G',
npm ERR! info RUN   'Visual Studio 17 2022',
npm ERR! info RUN   '-A',
npm ERR! info RUN   'x64',
npm ERR! info RUN   '-DCMAKE_JS_VERSION=7.3.0',
npm ERR! info RUN   '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN   '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\build',
npm ERR! info RUN   '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>',
npm ERR! info RUN   '-DCMAKE_JS_INC=D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\node_modules\\node-api-headers\\include;D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\node_modules\\node-addon-api',
npm ERR! info RUN   '-DCMAKE_JS_SRC=D:/ai/AIGC/FlowiseAIFullVersion/packages/components/node_modules/faiss-node/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc',
npm ERR! info RUN   '-DNODE_RUNTIME=node',
npm ERR! info RUN   '-DNODE_RUNTIMEVERSION=18.19.0',
npm ERR! info RUN   '-DNODE_ARCH=x64',
npm ERR! info RUN   '-DCMAKE_JS_LIB=D:\\ai\\AIGC\\FlowiseAIFullVersion\\packages\\components\\node_modules\\faiss-node\\build\\node.lib',
npm ERR! info RUN   '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE'
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: C:\Users\Admin\AppData\Local\npm-cache\_logs\2024-01-21T02_09_18_696Z-debug-0.log

AiDaShi avatar Jan 21 '24 02:01 AiDaShi

when I use Node 20.11.0, I also meet the error.

pm 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! 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   '/opt/third/node-v20.11.0-linux-x64/lib/node_modules/flowise/node_modules/flowise-components/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   '/opt/third/node-v20.11.0-linux-x64/lib/node_modules/flowise/node_modules/flowise-components/node_modules/faiss-node',
npm ERR! info RUN   '--no-warn-unused-cli',
npm ERR! info RUN   '-G',
npm ERR! info RUN   'Ninja',
npm ERR! info RUN   '-DCMAKE_JS_VERSION=7.3.0',
npm ERR! info RUN   '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN   '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/opt/third/node-v20.11.0-linux-x64/lib/node_modules/flowise/node_modules/flowise-components/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=/opt/third/node-v20.11.0-linux-x64/lib/node_modules/cmake-js/node_modules/node-api-headers/include;/opt/third/node-v20.11.0-linux-x64/lib/node_modules/flowise/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=20.11.0',
npm ERR! info RUN   '-DNODE_ARCH=x64',
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

then I change the version of node to 18.19.0, It's solved. my install command is

 npm install -g [email protected]

HamaWhiteGG avatar Feb 02 '24 02:02 HamaWhiteGG

I installed it today on windows 11 in my laptop and everything working perfectly. I did the following:

git clone https://github.com/FlowiseAI/Flowise.git
cd flowise
yarn install
yarn build
yarn start

and everything is working flawlessly and i did not have to install flowise globally.

DocSJ1980 avatar Feb 03 '24 18:02 DocSJ1980

The docs are wrong. If you run npm install -g flowise, then the next step should just be flowise start.

npx doesn't look for packages you've installed globally, only ones local to your current project dependencies.

custompro12 avatar Mar 11 '24 04:03 custompro12