FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
30.26k stars 15.63k forks source link

Problems with installation.I need help with this. #2390

Open 8draco8 opened 4 months ago

8draco8 commented 4 months ago

npm install -g flowise

설치 중에서 이런 에러가 나타난다.

E:\aiprogram\Flowise>npm install -g flowise npm warn ERESOLVE overriding peer dependency npm warn While resolving: chromadb@1.7.3 npm warn Found: @google/generative-ai@0.8.0 npm warn node_modules/flowise/node_modules/llamaindex/node_modules/@google/generative-ai npm warn @google/generative-ai@"^0.8.0" from llamaindex@0.2.13 npm warn node_modules/flowise/node_modules/llamaindex npm warn llamaindex@"^0.2.1" from flowise-components@1.7.2 npm warn node_modules/flowise/node_modules/flowise-components npm warn npm warn Could not resolve dependency: npm warn peerOptional @google/generative-ai@"^0.1.1" from chromadb@1.7.3 npm warn node_modules/flowise/node_modules/llamaindex/node_modules/chromadb npm warn chromadb@"~1.7.3" from llamaindex@0.2.13 npm warn node_modules/flowise/node_modules/llamaindex npm warn npm warn Conflicting peer dependency: @google/generative-ai@0.1.3 npm warn node_modules/@google/generative-ai npm warn peerOptional @google/generative-ai@"^0.1.1" from chromadb@1.7.3 npm warn node_modules/flowise/node_modules/llamaindex/node_modules/chromadb npm warn chromadb@"~1.7.3" from llamaindex@0.2.13 npm warn node_modules/flowise/node_modules/llamaindex npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: 'flowise@1.7.2', npm warn EBADENGINE required: { node: '>=18.15.0 <19.0.0 || ^20' }, npm warn EBADENGINE current: { node: 'v22.1.0', npm: '10.7.0' } npm warn EBADENGINE } npm warn deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: 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 @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm warn deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support npm warn deprecated puppeteer@19.11.1: < 21.9.0 is no longer supported npm warn deprecated domexception@4.0.0: Use your platform's native DOMException instead npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm warn deprecated vm2@3.9.19: 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 @oclif/screen@3.0.8: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated set-value@0.2.0: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated highlight.js@9.15.10: Version no longer supported. Upgrade to @latest npm warn deprecated puppeteer@20.9.0: < 21.9.0 is no longer supported npm warn cleanup Failed to remove some directories [ npm warn cleanup [ npm warn cleanup 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\sqlite3', npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\sqlite3'] { npm warn cleanup errno: -4082, npm warn cleanup code: 'EBUSY', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\sqlite3' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\faiss-node', npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\faiss-node'] { npm warn cleanup errno: -4082, npm warn cleanup code: 'EBUSY', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\faiss-node' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\grpc-tools', npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\grpc-tools'] { npm warn cleanup errno: -4082, npm warn cleanup code: 'EBUSY', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\grpc-tools' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\canvas', npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\canvas'] { npm warn cleanup errno: -4082, npm warn cleanup code: 'EBUSY', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\canvas' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules', npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\canvas'] { npm warn cleanup errno: -4082, npm warn cleanup code: 'EBUSY', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\canvas' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise', npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\faiss-node'] { npm warn cleanup errno: -4082, npm warn cleanup code: 'EBUSY', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\faiss-node' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\Users\DRACO\AppData\Roaming\npm\node_modules', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\llamaindex\node_modules'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\llamaindex\node_modules' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 1 npm error path C:\Users\DRACO\AppData\Roaming\npm\node_modules\flowise\node_modules\sharp npm error command failed npm error command C:\Windows\system32\cmd.exe /d /s /c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) npm error sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-win32-x64.tar.br npm error sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm error sharp: Installation error: aborted

npm error A complete log of this run can be found in: C:\Users\DRACO\AppData\Local\npm-cache_logs\2024-05-11T04_36_47_439Z-debug-0.log

windows 11/ node v22.1.0 / npm 10.7.0

I deleted the node and tried both reinstalling and downgrading, but it didn't work.I need help with this.

HenryHengZJ commented 4 months ago

this looks like some error with node-gyp, can you try npm install -g node-gyp ?

zhaoyong5555 commented 4 months ago

I have the same issue

8draco8 commented 4 months ago

I tried npm install -g node-gyp and it didn't work, so I'm running it in docker.

Eric-Catalyst commented 1 month ago

Clean install of node.js version 20.16.0, got the following:

% npm i flowise npm warn ERESOLVE overriding peer dependency npm warn While resolving: @mui/icons-material@5.0.3 npm warn Found: react@18.3.1 npm warn node_modules/react npm warn peerOptional react@">=17.0.0" from lunary@0.6.16 npm warn node_modules/flowise-components/node_modules/lunary npm warn lunary@"^0.6.16" from flowise-components@2.0.4 npm warn node_modules/flowise-components npm warn 30 more (flowise-ui, lunary, @emotion/react, @emotion/styled, ...) npm warn npm warn Could not resolve dependency: npm warn peer react@"^17.0.2" from @mui/icons-material@5.0.3 npm warn node_modules/@mui/icons-material npm warn @mui/icons-material@"5.0.3" from flowise-ui@2.0.4 npm warn node_modules/flowise-ui npm warn npm warn Conflicting peer dependency: react@17.0.2 npm warn node_modules/react npm warn peer react@"^17.0.2" from @mui/icons-material@5.0.3 npm warn node_modules/@mui/icons-material npm warn @mui/icons-material@"5.0.3" from flowise-ui@2.0.4 npm warn node_modules/flowise-ui npm warn ERESOLVE overriding peer dependency npm warn deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: 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 google-p12-pem@4.0.1: Package is no longer maintained npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported. npm warn deprecated gauge@3.0.2: This package is no longer supported. npm warn deprecated domexception@4.0.0: Use your platform's native DOMException instead npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm warn deprecated npmlog@5.0.1: This package is no longer supported. npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated @aws-sdk/protocol-http@3.374.0: This package has moved to @smithy/protocol-http npm warn deprecated @aws-sdk/signature-v4@3.374.0: This package has moved to @smithy/signature-v4 npm warn deprecated vm2@3.9.19: 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 puppeteer@20.9.0: < 22.8.2 is no longer supported npm warn deprecated @oclif/screen@3.0.8: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated glob@5.0.15: Glob versions prior to v9 are no longer supported npm warn deprecated set-value@0.2.0: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.3.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported. npm warn deprecated npmlog@6.0.2: This package is no longer supported. npm warn deprecated gauge@4.0.4: This package is no longer supported. npm warn deprecated highlight.js@9.15.10: Version no longer supported. Upgrade to @latest

BillTheMaker commented 1 month ago

I'm getting a very similar set of errors. I'm familiar with command line but new to node and JS. I updated node but am not really sure where to go from here. Also when it's done and I try "npx flowise start" I get the following error: C:\Users\Bill>npx flowise start » ModuleLoadError: [MODULE_NOT_FOUND] require failed to load » C:\Users\Bill\node_modules\flowise\dist\commands\start.js: Cannot find module 'langchainhub' » Require stack: » - C:\Users\Bill\node_modules\flowise\dist\index.js » - C:\Users\Bill\node_modules\flowise\dist\commands\start.js » - C:\Users\Bill\node_modules\@oclif\core\lib\module-loader.js » - C:\Users\Bill\node_modules\@oclif\core\lib\config\plugin.js » - C:\Users\Bill\node_modules\@oclif\core\lib\config\config.js » - C:\Users\Bill\node_modules\@oclif\core\lib\config\index.js » - C:\Users\Bill\node_modules\@oclif\core\lib\command.js » - C:\Users\Bill\node_modules\@oclif\core\lib\index.js » - C:\Users\Bill\node_modules\flowise\bin\run » Code: MODULE_NOT_FOUND

So i tried "npm install -g langchainhub" which says it installed a pkg but I get the same error. I'm not sure where it's calling langchainhub from but I assume I just installed it in the wrong directory?

dotbrt commented 1 month ago

Same issue here. It must have been the last update or something, because I was installing it over a week ago and it worked fine. I did a clean install now and get the dependency hell

Eric-Catalyst commented 1 month ago

Looking at this ticket and comparing with my experience installing Flowise recently, it seems the node-gyp issue that is the root cause of this issue has been resolved, so this issue should be closed. However, the dependency issues and use of unsupported packages with critical security issues is a major problem, and needs a separate issue report of its own.

I am a bit concerned that it seems both pull requests and issues are staying open for long periods of time with no activity in this project.

Astriel commented 1 month ago

Facing the same problem. Installed 2.0.4, had some problems with pgvector not working anymore, tried to switch to 1.8.4, but only 2.0.2 is installed and available.

morigs commented 22 hours ago

Had the same problem. Solved it with

npm i -g langchainhub