T
Twenty14mo ago
melsonic

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
ɃØĦɆᵾS14mo ago
Try following the instruction https://twenty.com/developers/local-setup
Twenty - Local Setup
Mostly for contributors or curious developers
walnut
walnut14mo ago
the local setup one has a lot of problems, try to run it from one-line script with docker
ɃØĦɆᵾS
ɃØĦɆᵾS14mo 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
melsonicOP14mo ago
I am following that only still getting those errors
ɃØĦɆᵾS
ɃØĦɆᵾS14mo ago
With yarn?
melsonic
melsonicOP14mo ago
with yarn it doesnot output anything
No description
ɃØĦɆᵾS
ɃØĦɆᵾS14mo ago
Okay, but did you run nvm install and nvm use? Twenty uses 18.17.1 version of node
melsonic
melsonicOP14mo ago
yeah
ɃØĦɆᵾS
ɃØĦɆᵾS14mo ago
🤔
melsonic
melsonicOP14mo ago
No description
charles
charles14mo ago
@melsonic you should be using yarn 🙂
charles
charles14mo ago
Twenty - Local Setup
Mostly for contributors or curious developers
melsonic
melsonicOP14mo ago
I have used yarn also, but it doesn't output anything. @charles
charles
charles14mo 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
melsonicOP14mo ago
hi @charles I tried to redo all the steps, but still running yarn stucks.
melsonic
melsonicOP14mo ago
No description
melsonic
melsonicOP14mo ago
Also, while running make postgres-on-linux it shows an error cound not change directory, because resolve_symlinks() function tries chdir to the original directory and raises the issue if it doesn't have the permissions. Although the commands were executed successfully, it looks like an error which could be solved. Should i raise an issue on it and raise a PR?
No description
ɃØĦɆᵾS
ɃØĦɆᵾS14mo ago
GitHub
make postgres-on-linux uses sudo unexpectedly · Issue #6319 · twent...
Following instructions in https://twenty.com/developers/local-setup I've ended up running make postgres-on-linux but that command used sudo and did administrative tasks, which wasn't antici...
melsonic
melsonicOP14mo ago
ooh, thanks @ɃØĦɆᵾS
premraj9864
premraj986414mo ago
I am also trying to locally setup Twenty in my wsl 4-6 times but everytime some or the other thing went wrong.
charles
charles14mo ago
@premraj9864 could you detail more, I haven't tried the WSL setup in a longtime, if we need to update it we can update it 🙂

Did you find this page helpful?