T
Twenty5mo 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: [email protected]
npm ERR! Found: [email protected]
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/[email protected]
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: [email protected]
npm ERR! Found: [email protected]
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/[email protected]
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:[email protected]#./packages/twenty-server/patches/typeorm+0.3.20.patch
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "patch:": patch:[email protected]#./packages/twenty-server/patches/typeorm+0.3.20.patch
21 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS5mo ago
Try following the instruction https://twenty.com/developers/local-setup
Twenty - Local Setup
Mostly for contributors or curious developers
walnut
walnut5mo ago
the local setup one has a lot of problems, try to run it from one-line script with docker
ɃØĦɆᵾS
ɃØĦɆᵾS5mo 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
melsonicOP5mo ago
I am following that only still getting those errors
ɃØĦɆᵾS
ɃØĦɆᵾS5mo ago
With yarn?
melsonic
melsonicOP5mo ago
with yarn it doesnot output anything
No description
ɃØĦɆᵾS
ɃØĦɆᵾS5mo ago
Okay, but did you run nvm install and nvm use? Twenty uses 18.17.1 version of node
melsonic
melsonicOP5mo ago
yeah
ɃØĦɆᵾS
ɃØĦɆᵾS5mo ago
🤔
melsonic
melsonicOP5mo ago
No description
charles
charles5mo ago
@melsonic you should be using yarn 🙂
charles
charles5mo ago
Twenty - Local Setup
Mostly for contributors or curious developers
melsonic
melsonicOP5mo ago
I have used yarn also, but it doesn't output anything. @charles
charles
charles5mo 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
melsonicOP5mo ago
hi @charles I tried to redo all the steps, but still running yarn stucks.
melsonic
melsonicOP5mo ago
No description
melsonic
melsonicOP5mo 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
ɃØĦɆᵾS5mo 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
melsonicOP5mo ago
ooh, thanks @ɃØĦɆᵾS
premraj9864
premraj98644mo 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
charles4mo 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 🙂
Want results from more Discord servers?
Add your server