Error in local Setup in yarn
I am trying to set up loacally on my Mac. But whiling doing this I am getting error after running Yarn.
Steps I followed :
1.Installed git , Node v18, Yarn v4(using corepack enable) and nvm using given links in doc.
2.Then cloned using SSH and run cd twenty
3.Installed database locally with brew
4.Installed redis
5. Copied .env.exmaple files to /front and /server
6.and Ran Yarn, this is when I ran into errors , as it was not completely successful
18 Replies
But still moved further and followed next steps:
1.Started Redis server
2.Setup Database with given command (npx nx database:reset twenty-server),
And I got errors after this also
@Raph
Yarn warnings aren't anything serious, don't worry about them
Are both postgres and redis running?
Redis is simply a cache, it stores only temporary data
Postgres is a database which stores all of the data
@bob Yes they are running, but there is also error after resetting servers, I have attached its screenshot in first comment.
Okay, let me check something
It seems like you're missing the last extension
Let me check
I tried to check List of Installed extensions but \dx is not working in my mac. Even I tried to reinstall postgres but still not working
@shyamsundertard as @bob said yarn warning are not significant
Regarding the postgres extension you are missing the wrappers but you should be fine as long as you don't try to use one feature called "Remote objects". Our setup regarding this feature / wrapper is quite broken in local setup
So I don't think the error you see are the root cause
could you share with me the content of your db (the schema list should be good enough), and your server logs when you start it (npx nx run twenty-server:start)
I tried to setup it again but now I'm getting error at database setup (make postgres-on-macos-arm)
It looks like for some reason reinstalling postgres didn't create again
postgres
table which is the most basic table containing all information about other databases and tables, I'm not sure how can I help you as I don't have MacI have resolved this db creating error. Schema has been created successfully.
But still this error is occuring after running:npx nx database:reset twenty-server, is it of any concern?
I am unable to check Schema as "psql -U postgres" is not connecting to DB but I have attached logs of "npx nx start twenty-server" command, and this is not giving any erros. If possible , kindly guide me to check contents of Schema list of my DB.
your server seems to be fine
but your database does not seem to be properly set up? could you see if it's running?
otherwise if you have experience with docker you can direclty use postgres container (see local setup guide)
It's running.
@charles @bob I think now repo clone is working. Am I right? Is there anything else I should check?
Just log in
If you can log in, then database is set properly
Yes, I am able to log in.
A big thanks to @charles and @bob for your time and help!