Flowise [BUG] Npm安装

pgvzfuti  于 6个月前  发布在  其他
关注(0)|答案(7)|浏览(83)

Bug描述

无法快速启动应用程序

重现步骤

重现行为:
npm install -g flowise
npx flowise start

预期行为

启动应用程序

截图

设置

macOS M1芯片Ventura

8hhllhi2

8hhllhi21#

你是否拥有版本大于等于18.15.0的node?

mkshixfv

mkshixfv2#

你好!我的Node版本是19.0.1。我也尝试使用yarn,但遇到了相同的错误。(最后我通过Docker解决了问题,但想报告这个bug)

DEBUG=* yarn start

yarn run v1.22.19
$ run-script-os
$ cd packages/server/bin && ./run start
  config reading core plugin /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server +0ms
  config loadJSON /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/package.json +0ms
  config loadJSON /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/oclif.manifest.json +0ms
  config loadJSON /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/.oclif.manifest.json +0ms
  config:flowise loading IDs from /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/dist/commands +0ms
  config:flowise found commands [ 'start' ] +4ms
winston:create-logger: Define prototype method for "error"
winston:create-logger: Define prototype method for "warn"
winston:create-logger: Define prototype method for "info"
winston:create-logger: Define prototype method for "http"
winston:create-logger: Define prototype method for "verbose"
winston:create-logger: Define prototype method for "debug"
winston:create-logger: Define prototype method for "silly"
winston:create-logger: Define prototype method for "error"
winston:create-logger: Define prototype method for "warn"
winston:create-logger: Define prototype method for "info"
winston:create-logger: Define prototype method for "http"
winston:create-logger: Define prototype method for "verbose"
winston:create-logger: Define prototype method for "debug"
winston:create-logger: Define prototype method for "silly"
  config reading user plugins pjson /Users/pascaltiberghien/.local/share/flowise/package.json +0ms
  config loadJSON /Users/pascaltiberghien/.local/share/flowise/package.json +0ms
(node:4781) [ERR_DLOPEN_FAILED] Error Plugin: flowise: dlopen(/Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/node_modules/canvas/build/Release/canvas.node, 0x0001): symbol not found in flat namespace '_cairo_fill'
module: @oclif/core@1.26.2
task: toCached
plugin: flowise
root: /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
Error Plugin: flowise: dlopen(/Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/node_modules/canvas/build/Release/canvas.node, 0x0001): symbol not found in flat namespace '_cairo_fill'
    at Module._extensions..node (node:internal/modules/cjs/loader:1243:18)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
module: @oclif/core@1.26.2
task: toCached
plugin: flowise
root: /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server
See more details with DEBUG=*
winston:file: stat done: server.log { size: 0 }
winston:file: create stream start /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/logs/server.log { flags: 'a' }
winston:file: create stream ok /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/logs/server.log
winston:file: stat done: server-error.log { size: 0 }
winston:file: create stream start /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/logs/server-error.log { flags: 'a' }
winston:file: create stream ok /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/logs/server-error.log
winston:file: stat done: server-error.log { size: 0 }
winston:file: create stream start /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/logs/server-error.log { flags: 'a' }
winston:file: create stream ok /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/logs/server-error.log
winston:file: stat done: server-error.log { size: 0 }
winston:file: create stream start /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/logs/server-error.log { flags: 'a' }
winston:file: create stream ok /Users/pascaltiberghien/code/Pascaltib/levelUp/Flowise/packages/server/logs/server-error.log
  config config done +3ms
  config start init hook +0ms
  config init hook done +0ms
  config runCommand start [] +0ms
  config start command_not_found hook +0ms
  config command_not_found hook done +0ms
 ›   Error: command start not found
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
8i9zcol2

8i9zcol23#

看起来问题是由于你的MAC架构(ARM)引起的。这就是为什么我避免将我的Intel MAC升级到M2的原因。

uhry853o

uhry853o4#

明白了,感谢调查!

z2acfund

z2acfund5#

看起来问题是由于你的MAC架构(ARM)导致的。这就是为什么我避免将我的Intel MAC升级到M2的原因。

If you have an ARM CPU
Prebuilds aren't available for ARM. Please see the [wiki](https://github.com/Automattic/node-canvas/wiki#installation-guides) for guides on building from source. See also https://github.com/node-gfx/node-canvas-prebuilt/issues/69.

Automattic/node-canvas#1511
那么这是否意味着你不能在这个M2 Mac上运行这个程序呢?

ybzsozfc

ybzsozfc6#

@rosh-eth ,这意味着该项目存在一个依赖项,该依赖项尚未构建/编译以在ARM架构上运行。
这并不意味着它无法运行。
如果您访问node-canva的GitHub页面,那里有关于在所需架构上构建软件包的说明。

cx6n0qe3

cx6n0qe37#

I have similar warnings on PC, is there a solution for it ? No idea how to install successfully and run.

$

$

相关问题