skip to Main Content

enter image description here

how can i get rid of the error?

I used "npm i" and still nothing changes
enter image description here

I want to be able to see the database on port 8000, but something is probably not configured. what solution can there be here?

3

Answers


  1. If I understant correctly, you are trying to use the host and the port in your .env file, and if they’re not declared, you want to use localhost:3000.

    to accomplish this, the correct JS syntax should resemble to this :

    port : process.env.port? process.env.port : "3000",
    host : process.env.host? process.env.host : "localhost"
    

    Hope this helps

    Login or Signup to reply.
  2. just remove space between 2 question marks (?)

    ? ? -> ??
    
    Login or Signup to reply.
  3. probably you have no .env file. Add your project the .env file and your port

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search