# Error when trying to setup the Backend

**URL:** <https://forum.codewithmosh.com/t/error-when-trying-to-setup-the-backend/17189>\
**Category:** Node\
**Created:** [December 23, 2022, 5:22pm UTC](https://forum.codewithmosh.com/t/error-when-trying-to-setup-the-backend/17189 "2022-12-23T17:22:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kinganes](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kinganes](https://forum.codewithmosh.com/u/kinganes)\
**Post date:** [January 17, 2023, 1:51pm UTC](https://forum.codewithmosh.com/t/error-when-trying-to-setup-the-backend/17189/3 "2023-01-17T13:51:17Z")

</div>

I got it solved like this:

1. Create new blank folder and open terminal
2. writ “npm init” and follow the steps in the command line (you have to give ur name and project name and so on)
3. you install all the dependencies that mosh installed  
 → I opened the package.json and looked all the dependencies on GitHub and installed them into the blank folder  
Those are the dependencies that I installed :  
“body-parser”: “^”,  
“compression”: “^”,  
“config”: “^”,  
“expo-server-sdk”: “^”,  
“express”: “^”,  
“helmet”: “^”,  
“joi”: “^”,  
“jsonwebtoken”: “^”,  
“multer”: “^”,  
“sharp”: “^”
4. After I installed everything I copied (except for the package.json) the files from mosh into the blank folder where I just installed all the node modules
5. From here you can go on like in the Video → npm I and it should work

---

_[View the full topic](https://forum.codewithmosh.com/t/error-when-trying-to-setup-the-backend/17189)._
