Error in Local Setup

Hi everyone, I am trying to setup twenty locally, but facing some issue here. Firstly when i ran npm install it shows me the following error
❯ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: twenty@0.2.1
npm ERR! Found: passport@0.7.0
npm ERR! node_modules/passport
npm ERR! passport@"^0.7.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer passport@"^0.4.0 || ^0.5.0 || ^0.6.0" from @nestjs/passport@9.0.3
npm ERR! node_modules/@nestjs/passport
npm ERR! @nestjs/passport@"^9.0.3" 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!
npm ERR! For a full report see:
npm ERR! /home/neilbenz/.npm/_logs/2024-08-20T19_32_33_994Z-eresolve-report.txt
❯ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: twenty@0.2.1
npm ERR! Found: passport@0.7.0
npm ERR! node_modules/passport
npm ERR! passport@"^0.7.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer passport@"^0.4.0 || ^0.5.0 || ^0.6.0" from @nestjs/passport@9.0.3
npm ERR! node_modules/@nestjs/passport
npm ERR! @nestjs/passport@"^9.0.3" 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!
npm ERR! For a full report see:
npm ERR! /home/neilbenz/.npm/_logs/2024-08-20T19_32_33_994Z-eresolve-report.txt
So, in package.json file I changer the passport version to a supportin version 0.6.0. Now when i ran npm install it shows me the following error
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "patch:": patch:typeorm@0.3.20#./packages/twenty-server/patches/typeorm+0.3.20.patch
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "patch:": patch:typeorm@0.3.20#./packages/twenty-server/patches/typeorm+0.3.20.patch
21 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS4w ago
Try following the instruction https://twenty.com/developers/local-setup
Twenty - Local Setup
Mostly for contributors or curious developers
walnut
walnut4w ago
the local setup one has a lot of problems, try to run it from one-line script with docker
ɃØĦɆᵾS
ɃØĦɆᵾS4w ago
The local setup works fine, the problem is with docker as more and more people are reporting bugs with 1-click deploy Also, logs show that instead of using newest version, there's 0.2.1 version used
melsonic
melsonic4w ago
I am following that only still getting those errors
ɃØĦɆᵾS
ɃØĦɆᵾS4w ago
With yarn?
melsonic
melsonic4w ago
with yarn it doesnot output anything
No description
ɃØĦɆᵾS
ɃØĦɆᵾS4w ago
Okay, but did you run nvm install and nvm use? Twenty uses 18.17.1 version of node
melsonic
melsonic4w ago
yeah
ɃØĦɆᵾS
ɃØĦɆᵾS4w ago
🤔
melsonic
melsonic4w ago
No description
charles
charles4w ago
@melsonic you should be using yarn 🙂
charles
charles4w ago
Twenty - Local Setup
Mostly for contributors or curious developers
melsonic
melsonic4w ago
I have used yarn also, but it doesn't output anything. @charles
charles
charles4w ago
@melsonic could you wipe out your twenty folder and retry using the exact steps from the local-setup guide and tell me if it fails at some point. you might have broken things while trying to use npm
melsonic
melsonic4w ago
hi @charles I tried to redo all the steps, but still running yarn stucks.
Want results from more Discord servers?
Add your server