[BUG] Npm Installation
Describe the bug Cannot quickstart application
To Reproduce Steps to reproduce the behavior:
npm install -g flowise
npx flowise start
Expected behavior Start application
Screenshots
Setup macOS M1 chip Ventura
do you have node version >= 18.15.0?
Hi! I have node version 19.0.1.
I also tried using yarn with the same error. (In the end I got it working with docker but wanted to report the 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/[email protected]
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/[email protected]
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.
It looks like the issue is due to you MAC arch(ARM) This kind of issues is why I'm avoiding to upgrade my Intel MAC to 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.
https://github.com/Automattic/node-canvas/issues/1511
Got it thanks for investigating!
It looks like the issue is due to you MAC arch(ARM) This kind of issues is why I'm avoiding to upgrade my Intel MAC to 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.
So does that mean you can't run this on a M2 Mac?
@rosh-eth it means this project has a dependency which is not built/compiled to run on ARM arch. It doesn't means is not capable to run. If you go to the node-canva github there are instructions to build the package on the desired ARCH.
I have similar warnings on PC, is there a solution for it ? No idea how to install successfully and run..
I can't use npm install flowise too!
C:\Users\19700>node -v
v18.20.4
Unable to install flowise using npm. Tried yarn, increased yarn network timeout, switched the internet connection. No luck!
Node JS: v20.10.0 npm: 10.2.3 yarn: 1.22.22