mohamedsamara / mern-ecommerce

:balloon: Fullstack MERN Ecommerce Application
https://mern-store-gold.vercel.app
MIT License
1.63k stars 770 forks source link

I can't run the project locally #216

Closed Danielecarn closed 2 weeks ago

Danielecarn commented 9 months ago

Describe the bug I'm trying to follow the README file to run the project but without success.

Is the README file ok?

To Reproduce

Mongodb is ok:

image

But when I write npm run dev, I has this error:

image

When the .env file was inside the server folder, another error was displayed during execution stating that the .env was not found. So I moved it to the root folder.

Could anyone tell me if the application ran in any commit? I would like to do automated tests on the application. Thanks

Hitesh-code commented 9 months ago

command : npm i dotenv this cmd will update your dotenv package and you will be able to run localy

saoodchoudhary commented 8 months ago

Add .env file in your server folder.

saoodchoudhary commented 8 months ago

Add .env file in your server folder.

then --- $cd server $npm install

YumeLoL commented 7 months ago

have you set up your MongoDB, need to change MONGO_URI to your own.

pusty1830 commented 3 months ago

command: npm i dotenv and add npm install

mohamedsamara commented 2 weeks ago

@Danielecarn In the project root run npm install and this should install both dependencies for both client and server. See package.json