N8n giving build issue - n8n-editor-ui#build

Hey Team,

I want to setup local env in my macOS; i’m getting build error. need help on local environment setup

transforming (4547) …/…/node_modules/.pnpm/[email protected]/node_modules/rec ELIFECYCLE Command failed with exit code 1.
n8n-editor-ui:build: ERROR: command finished with error: command (/workspaces/packages/editor-ui) /usr/local/bin/pnpm run build exited (1)
n8n-editor-ui#build: command (/workspaces/packages/editor-ui) /usr/local/bin/pnpm run build exited (1)

Tasks: 16 successful, 18 total
Cached: 16 cached, 18 total
Time: 41m22.809s
Failed: n8n-editor-ui#build

ERROR run failed: command exited (1)
ELIFECYCLE Command failed with exit code 1.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:1.79
  • **Database (default: SQLite):SQLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): github code
  • **Operating system:macs

Hey @Surya_K

Can you try running pnpm reset and seeing if thus helps assuming you are using in modified code.