Can't set up n8n according to provided guide

Hello everyone! I’m trying to run n8n locally and going through instruction of setting project up. Unfortunately I can’t make it work. When I run lerna bootstrap --hoist I gen en error:

info cli using local version of lerna
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 6 packages
lerna WARN EHOIST_PKG_VERSION "n8n-editor-ui" package depends on uuid@^8.1.0, which differs from the hoisted uuid@^8.3.0.
lerna WARN EHOIST_PKG_VERSION "n8n-node-dev" package depends on tmp-promise@^2.0.2, which differs from the hoisted tmp-promise@^3.0.2.
lerna info Installing external dependencies
lerna info hoist Installing hoisted dependencies into root
lerna info hoist Pruning hoisted dependencies
lerna info hoist Finished pruning hoisted dependencies
lerna ERR! npm install exited 1 in 'n8n'
lerna ERR! npm install stderr:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: n8n@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   eslint@"^6.8.0" from the root project
npm ERR!   peer eslint@">=6.2.2" from @vue/[email protected]
npm ERR!   node_modules/@vue/eslint-config-standard
npm ERR!     @vue/eslint-config-standard@"^5.0.1" from the root project
npm ERR!   2 more (eslint-plugin-import, eslint-plugin-node)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^7.0.0" from [email protected]
npm ERR! node_modules/eslint-plugin-promise
npm ERR!   peer eslint-plugin-promise@">= 4.2.1" from @vue/[email protected]
npm ERR!   node_modules/@vue/eslint-config-standard
npm ERR!     @vue/eslint-config-standard@"^5.0.1" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/giddeonwyeth/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/giddeonwyeth/.npm/_logs/2021-08-29T10_40_20_375Z-debug.log

lerna ERR! npm install exited 1 in 'n8n'

Can you please give me an advice on how to resolve this and make everything work?
Thanks!

Please use Node.js v14 and npm v6 or activate legacy mode npm config set legacy-peer-deps true

Here the same issue on GitHub:

Thanks @jan !
Lerna process ended successfully so now I try to run the next step, which is npm run start but get error again:

 n8n % npm run start

> start
> run-script-os


> start:default
> cd packages/cli/bin && ./n8n

(node:1481) [MODULE_NOT_FOUND] Error Plugin: n8n: Cannot find module '/Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli/node_modules/n8n-core/dist/src/index'. Please verify that the package.json has a valid "main" entry
module: @oclif/[email protected]
task: toCached
plugin: n8n
root: /Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1481) [MODULE_NOT_FOUND] Error Plugin: n8n: Cannot find module '/Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli/node_modules/n8n-core/dist/src/index'. Please verify that the package.json has a valid "main" entry
module: @oclif/[email protected]
task: toCached
plugin: n8n
root: /Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli
See more details with DEBUG=*
(node:1481) [MODULE_NOT_FOUND] Error Plugin: n8n: Cannot find module '/Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli/node_modules/n8n-core/dist/src/index'. Please verify that the package.json has a valid "main" entry
module: @oclif/[email protected]
task: toCached
plugin: n8n
root: /Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli
See more details with DEBUG=*
(node:1481) [MODULE_NOT_FOUND] Error Plugin: n8n: Cannot find module '/Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli/node_modules/n8n-core/dist/src/index'. Please verify that the package.json has a valid "main" entry
module: @oclif/[email protected]
task: toCached
plugin: n8n
root: /Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli
See more details with DEBUG=*
(node:1481) [MODULE_NOT_FOUND] Error Plugin: n8n: Cannot find module '/Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli/node_modules/n8n-core/dist/src/index'. Please verify that the package.json has a valid "main" entry
module: @oclif/[email protected]
task: toCached
plugin: n8n
root: /Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli
See more details with DEBUG=*
(node:1481) [MODULE_NOT_FOUND] Error Plugin: n8n: Cannot find module '/Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli/node_modules/n8n-core/dist/src/index'. Please verify that the package.json has a valid "main" entry
module: @oclif/[email protected]
task: toCached
plugin: n8n
root: /Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli
See more details with DEBUG=*
(node:1481) [MODULE_NOT_FOUND] Error Plugin: n8n: Cannot find module '/Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli/node_modules/n8n-core/dist/src/index'. Please verify that the package.json has a valid "main" entry
module: @oclif/[email protected]
task: toCached
plugin: n8n
root: /Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli
See more details with DEBUG=*
(node:1481) [MODULE_NOT_FOUND] Error Plugin: n8n: Cannot find module '/Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli/node_modules/n8n-core/dist/src/index'. Please verify that the package.json has a valid "main" entry
module: @oclif/[email protected]
task: toCached
plugin: n8n
root: /Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli
See more details with DEBUG=*
(node:1481) [MODULE_NOT_FOUND] Error Plugin: n8n: Cannot find module '/Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli/node_modules/n8n-core/dist/src/index'. Please verify that the package.json has a valid "main" entry
module: @oclif/[email protected]
task: toCached
plugin: n8n
root: /Users/giddeonwyeth/PhpstormProjects/n8n/packages/cli
See more details with DEBUG=*
 ›   Error: command start not found

What can be the cause this time?

Looks like you did maybe not build the project yet. Did you run npm run build?

Yes, I did. I got lots of typescript errors saying that some n8n packages like n8n-workflow or n8n-core are missing. Yet I can see them in node_modules of each particular package

In this case, it is best to start again all over again, following this guide step by step:

I just did just follow it myself to make 100% sure there is nothing wrong. For me, it worked totally fine. So starting over will maybe help.