Error when trying to setup the Backend

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
1 Like