I am trying for a local build not Docker.
Hey
freeCodeCamp does not run natively on windows. However it can be used via WSL
I did follow all the steps mentioned in above link but when I try to seed the database using pnpm run seed it has below error:
Your help will be highly appreciated as I am very new as a contributor
Are you using WSL?
Yes, I am using WSL.
What does the command cat .env
show when you run it from the freecodecamp path?
Please see more information of cat .env as it was not allowing me to add two screenshots in a single reply:
How about this command? Did you complete it?
pnpm install && pnpm run create:shared
Can you check that mongodb is running?
How do you open your Ubuntu WSL2 terminal? Do you just run it normally?
I opened app and that directly opens command prompt. Please see below screenshot, I did run some recommended commands to set up locally:
Yes this last screenshot looks like mine but your first screenshot doesn’t look like that. Are you running the commands from the Ubuntu terminal?
Also please note that fCC is using mongodb 6.0.x (I know the docs say 5 but they are out of date)
No, I am running pnpm commands in git bash.
Should I uninstall upgrade MongoDB to 6.0.16 that is available to download?
As I am new this is my last reply. There is restriction for me on replies. I will be able to check tomorrow I guess…But really felt like I am getting help here. Thank you .
Please run the commands in Ubuntu as that is what has worked for me so that is all I can advise.
Yes I would remove mongodb from docker and pull in the 6.0 version: