Cannot 'pnpm build' n8n on a fresh dev install

I’m trying to set and run a local environment of n8n based on these instructions but get an error when running pnpm build saying
@n8n/chat#build: command (C:\Dev\YOVentures\n8n\packages\@n8n\chat) pnpm run build exited (1)
Screenshot attached

  • n8n version: latest
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): pnpm
  • Operating system: Windows

Figured it out.
I needed to update packages\@n8n\chat\package.json with
"build:vite:full": "cross-env INCLUDE_VUE=true vite build",
instead of
"build:vite:full": "INCLUDE_VUE=true vite build",

Reason is that on Windows environments you need to use either a set or a cross-env before setting a config variable.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.