Skip to content

pnpm dev fails with "command start not found" in Flowise v3.0.5 #5176

@Prashanthbadri112

Description

@Prashanthbadri112

Describe the bug

I am new to Flowise and trying to set up the project for local development. While running the development build with pnpm dev, I encountered an error where the server fails to start due to a missing command.

flowise@3.0.5 dev /home/prashanth/Documents/Flowise
turbo run dev --parallel --no-cache

• Packages in scope: flowise, flowise-api, flowise-components, flowise-ui
• Running dev in 4 packages
• Remote caching disabled
flowise:dev: cache bypass, force executing b3dfbc724f3119bf
flowise-ui:dev: cache bypass, force executing 9aed1e9ea6dc26aa
flowise-ui:dev:
flowise-ui:dev: > flowise-ui@3.0.5 dev /home/prashanth/Documents/Flowise/packages/ui
flowise-ui:dev: > vite
flowise-ui:dev:
flowise:dev:
flowise:dev: > flowise@3.0.5 dev /home/prashanth/Documents/Flowise/packages/server
flowise:dev: > nodemon
flowise:dev:
flowise:dev: [nodemon] 2.0.22
flowise:dev: [nodemon] to restart at any time, enter rs
flowise:dev: [nodemon] watching path(s): commands index.ts src/**/*
flowise:dev: [nodemon] watching extensions: ts
flowise:dev: [nodemon] starting pnpm start
flowise-ui:dev: The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
flowise-ui:dev:
flowise-ui:dev: VITE v5.1.6 ready in 535 ms
flowise-ui:dev:
flowise-ui:dev: ➜ Local: http://localhost:8080/
flowise-ui:dev: ➜ Network: use --host to expose
flowise:dev:
flowise:dev: > flowise@3.0.5 start /home/prashanth/Documents/Flowise/packages/server
flowise:dev: > run-script-os
flowise:dev:
flowise-ui:dev: Browserslist: caniuse-lite is outdated. Please run:
flowise-ui:dev: npx update-browserslist-db@latest
flowise-ui:dev: Why you should do it regularly: https://github.com/browserslist/update-db#readme
flowise:dev:
flowise:dev: > flowise@3.0.5 start:default
flowise:dev: > cd bin && ./run start
flowise:dev:
flowise:dev: /home/prashanth/Documents/Flowise/node_modules/.pnpm/@oclif+core@4.0.7/node_modules/@oclif/core/lib/config/config.js:394
flowise:dev: throw new errors_1.CLIError(command ${id} not found);
flowise:dev: ^
flowise:dev:
flowise:dev: CLIError: command start not found
flowise:dev: at Config.runCommand (/home/prashanth/Documents/Flowise/node_modules/.pnpm/@oclif+core@4.0.7/node_modules/@oclif/core/lib/config/config.js:394:19)
flowise:dev: at async Object.run (/home/prashanth/Documents/Flowise/node_modules/.pnpm/@oclif+core@4.0.7/node_modules/@oclif/core/lib/main.js:94:16) {
flowise:dev: code: undefined,
flowise:dev: oclif: { exit: 2 },
flowise:dev: skipOclifErrorHandling: undefined,
flowise:dev: suggestions: undefined
flowise:dev: }
flowise:dev:
flowise:dev: Node.js v20.19.0
flowise:dev: npm error Lifecycle script start:default failed with error:
flowise:dev: npm error code 1
flowise:dev: npm error path /home/prashanth/Documents/Flowise/packages/server
flowise:dev: npm error workspace flowise@3.0.5
flowise:dev: npm error location /home/prashanth/Documents/Flowise/packages/server
flowise:dev: npm error command failed
flowise:dev: npm error command sh -c cd bin && ./run start
flowise:dev:  ELIFECYCLE  Command failed with exit code 1.

To Reproduce

Clone the repo : git clone https://github.com/FlowiseAI/Flowise.git
Go into repo folder : cd Flowise
Install all dependencies of all modules: pnpm install
For development build:
Create .env file and specify the VITE_PORT (refer to .env.example) in packages/ui
Create .env file and specify the PORT (refer to .env.example) in packages/server
Run: pnpm dev

Expected behavior

The development server should start successfully when running pnpm dev, launching both the UI (http://localhost:8080/) and the backend server without any missing command errors.

Screenshots

No response

Flow

No response

Use Method

None

Flowise Version

No response

Operating System

Linux

Browser

Edge

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions